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 'Reilly Media'' at line 1
CHECK THE URL =>
SELECT COUNT(id) FROM tbl_books where status = 'active' and publisher='O'Reilly Media'