Problem: Error while preparing query
SELECT s.ID, mp.city, m.city AS secCity, m.meeting_start, mp.title,
m.ID AS meeting_id, c.title AS country, s.url, s.language, s.preached_at,s.author_id,
GROUP_CONCAT(s.file_name) AS file_name, GROUP_CONCAT(s.embed_code) AS embed_code, c.ext AS country_mark
FROM msk_sermons AS s
LEFT JOIN msk_meetings AS m
ON s.meeting_id = m.ID
LEFT JOIN msk_meeting_places AS mp
ON mp.ID = m.meeting_place_id
LEFT JOIN msk_countries AS c
ON mp.country_id = c.ID
WHERE (mp.city != "" OR m.city != "")
AND s.mainswitch = 1
AND m.ID =
AND s.production = 1
GROUP BY s.language,s.meeting_id
ORDER BY m.meeting_start DESC
LIMIT 100
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 'AND s.production = 1
GROUP BY s.language,s.meeting_id
OR' at line 14