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 'Titles' at line 1 Query: SELECT Name FROM m3_categories WHERE Id=General Titles