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 'LIKE '' AND active LIKE '%YES%' ORDER BY priority ASC LIMIT 6, 6' at line 1