Problem: Error while preparing query
SELECT b.title, b.url, b.cover, b.description, b.book_id AS groupedByBookID, b.language
FROM msk_books AS b
WHERE b.mainswitch = 1
AND b.production = 1
AND b.meeting_id =
GROUP BY b.book_id
ORDER BY b.published_at DESC
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 'GROUP BY b.book_id
ORDER BY b.published_at DESC' at line 6