problem with : SELECT c.id,
c.name,
c.link,
c.city,
c.area_id,
c.description,
c.summary,
c.image_id,
ci.src AS image
FROM Courses c
LEFT JOIN Course_Images ci ON ci.id = c.image_id
WHERE c.area_id =
ORDER BY c.name
LIMIT 0, 10 ; 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 c.name
LIMIT 0, 10' at line 13