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 item_id1 = t.id and table_ref1 = 't_audios' and table_ref2 = 't_pages') AS' at line 1
select t.id,t.title, (select count(*) from t_assoc where item_id2 = and item_id1 = t.id and table_ref1 = 't_audios' and table_ref2 = 't_pages') AS 'item_check' from t_audios t where t.active = 1 order by t.title
Filename: models/Basicmodel.php
Line Number: 918