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 's Day' limit 25' at line 1 SQL: select * from art.products_top_per_cat where parentcategory = 'Holidays' and category = 'St. Patrick's Day' limit 25