Topic: Query Failing
Ok... I have been at work all night (not working on this problem though ) and this is starting to annoy me now.
I have this bit of code...
$result = $db->query('SELECT subject FROM '.$db->prefix.'topics WHERE id='.$id) or error('Unable to fetch topic subject', __FILE__, __LINE__, $db->error());
When a topic has been deleted it gives me the "unable to fetch topic subject" error instead of the normal "message(Bad request)" error.
Come on, someone point out the obvious for me... please....