Notice: Undefined variable: w in /home/gbvehicl/public_html/Modules/HTMLThemes/Aero/logic/ListLeasing.php on line 22

Warning: implode(): Invalid arguments passed in /home/gbvehicl/public_html/Modules/HTMLThemes/Aero/logic/ListLeasing.php on line 22
Select Statement Failed! 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 'limit 1' at line 1

SQL String
select if(Commercial = 'Y', 'van', 'car') as cv from car_web_mm where limit 1