[eluser]John_Betong[/eluser]
[quote author="wilso417" date="1285359007"]Here is my code:
$this->db->select('junk');
$this->db->from('news');
$this->db->where('id', $content_id);
Here is my database error that gets outputted on screen:
A Database Error Occurred
Error Number: 1054
Unknown column 'junk' in 'field list'
SELECT `junk` FROM (`news`) WHERE `id` = '160'
I would like that error to have the following as well:
content_m.php line 360
I have a lot of queries in one page load and it's not easier for me to track down which one is causing an error.[/quote]
I do not understand why you should search for the 'junk' field if it does not exist?
I think it is a case of GIGO (Garbage In, Garbage Out). Clean up your input and you should have less errors.