July 9th, 2012, 01:03 PM
Join Date: Jul 2012
Time spent in forums: 42 m 57 sec
Reputation Power: 0
Syntax Error Help
May you all live in peace!
I have a little problem and I am very hopeful that I will get a solution over here.
I have created a php page which runs this SQL statement:
SELECT * FROM mdl_trainings WHERE manager_id = $1 AND end IS NULL
0 => '15',
Here is the error I receive,
"Error Reading Database"
Debug info: ERROR: syntax error at or near "end"
I hope someone here can definitely guide me what syntax error is there in the statement and how can I correct that.
Note: The same statement works perfect for MySQL database but does not work for PostgreSQL database.
With warm regards,