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 feat_pressid=press_id order by press_year desc, press_month desc, press_titl' at line 1 select * from featured, press where feat_prodid= and feat_pressid=press_id order by press_year desc, press_month desc, press_title
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 prod_published=1 order by rand() limit 4' at line 1 select sug_sugprodid from suggestions, products where sug_sugprodid=prod_id and sug_mainprodid = and prod_published=1 order by rand() limit 4