Ошибка БД
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 'or s.metro1= or s.metro2=) order by s.sort DESC,rand()' at line 1
SELECT s.*,m.metro as metroName FROM catalog_items as s Inner JOIN metro as m on m.mid=s.metro where s.status='A' and (s.metro= or s.metro1= or s.metro2=) order by s.sort DESC,rand()