Problem: Error while preparing query
SELECT ID,title AS chapter,perex,content
FROM msk_book_chapters
WHERE mainswitch = 1
AND production = 1
AND language = ""
AND book_id =
ORDER BY position ASC
Type of error: 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 position ASC' at line 7