SELECT `id`,`title`,`ostan`,`ostan_all` FROM `ham3d_service` WHERE `lang` = 'fa' AND (FIND_IN_SET(,`ostan`) OR `ostan_all`='1') ORDER BY `order` ASC,`id` DESC LIMIT 20 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`ostan`) OR `ostan_all`='1') ORDER BY `order` ASC,`id` DESC LIMIT 20' at line 1