A Database Error Occurred
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 'and active = 1' at line 1
SELECT b.*, (select image from t_images where item_id = b.id and table_ref = 't_brands' and image <>'' order by priority asc limit 1) as brand_icon FROM t_brands b where b.id = and active = 1
Filename: models/Basicmodel.php
Line Number: 840