BookDetails
SELECT a.*, b.* FROM `book_category` AS a , `book_detail` AS b WHERE a.id = b.b_category and b.b_id= ORDER BY b.b_id
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 'ORDER BY b.b_id' at line 1