Error Number: 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 ' r.category_id) ORDER BY r.rating DESC' at line 5
SELECT r.*, (SELECT title FROM categories WHERE id = r.category_id) as cat_title FROM reviews as r WHERE FIND_IN_SET(, r.category_id) ORDER BY r.rating DESC
Filename: controllers/Category.php
Line Number: 26