|
|
|
|
SELECT *, b.id as book_id , p.tc_name as publisher FROM book b JOIN book_category bc ON b.id=bc.book_id JOIN publisher p ON b.publisher_id = p.id WHERE b.status='enable' AND bc.category_id=37 ORDER BY bc.ordering DESC LIMIT -20,20 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 '-20,20' at line 1 | | | |