A fatal MySQL error occured.
Query:
SELECT
r.*,
rt.rating
FROM pmd_reviews r
LEFT JOIN pmd_ratings rt
ON r.id=rt.review_id
WHERE r.listing_id= AND status='active'
ORDER BY id DESC LIMIT 3
Error:
(1064) 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 status='active'
ORDER BY id DESC LIMIT 3' at line 7