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 'catid) AND `alias` = 'videos'' at line 3 SQL=SELECT `id` FROM ptv_content WHERE FIND_IN_SET(,catid) AND `alias` = 'videos'