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` = 'Cmentarz_Żydowski_pod_opieką..._więźniów,1407,polecam' at line 3 SQL=SELECT `id` FROM ptv_content WHERE FIND_IN_SET(,catid) AND `alias` = 'Cmentarz_Żydowski_pod_opieką..._więźniów,1407,polecamy.html'