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 '?id=175' at line 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?id=175 AND concat(scn_year,scn_month,scn_day) >= 20100209 AND ven_active IN (1)' at line 3You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?id=175 AND concat(scn_year,scn_month,scn_day) < 20100209
ORDER BY scn_acti' at line 3