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 ACTIVE = 1 ORDER BY POSITION ASC' at line 1
SELECT WCAPTION,WCONTENT,ICON,ALT FROM widgets WHERE OTID = AND ACTIVE = 1 ORDER BY POSITION ASC
SELECT WCAPTION,WCONTENT,ICON,ALT FROM widgets WHERE OTID = AND ACTIVE = 1 ORDER BY POSITION ASC







