How to stop quotes getting inserted into my queries |
[eluser]Durkin[/eluser]
Hi, I am trying to get some data from the db with the following code: Code: // Code below returns all books, and listing data if available - Removes already bought books Problem is that I am getting an SQL error due to active record placing quotes around the word 'INTERVAL'. If I run the query that is outputted with the error on my database, without the quotes, it runs fine. How can I stop these quotes appearing in the query? It seems to add them correctly in every other instance, not sure why it is adding them incorrectly now. Thanks
[eluser]Aken[/eluser]
http://ellislab.com/codeigniter/user-gui...tml#select Check the select() docs.
|
Welcome Guest, Not a member yet? Register Sign In |