selam arkadaşlar.
public function get_all()
 {
   $query = $this->db->prepare("SELECT categories.*, COUNT(posts.id) as total FROM $this->table INNER JOIN posts on FIND_IN_SET(categories.id,posts.categories) GROUP BY categories.id ORDER by categories.id DESC");
$query->execute();
return $query->fetchAll(PDO::FETCH_ASSOC);
}
böyle bir SQL sorgum var. local xampp de bir sorun yok fakat hostingte boş array döndürüyor.

ne yapmalı?