Invalid Query : 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 '' at line 1
select count(b.b_id) from cpbooks_books b left join cpbooks_author_book ab on b.b_id=ab.b_id left join cpbooks_authors a on ab.a_id=a.a_id left join cpbooks_publisher p on b.p_id=p.p_id where b.c_id=