A Database Error Occurred

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 'index and parentid =14' at line 3

SELECT 1 FROM (`t_news`) WHERE userid=index and parentid =14

Filename: D:\wwwroot\cbccnew\wwwroot\system\database\DB_driver.php

Line Number: 331