I am taking over code from someone else which is basically shit and i cant find the reason why this is not working:
the q is the SQL query and works perfectly fine (if copied into phpmyadmin for example.
$db->query($q);
the db seems to work on the rest of the site and an echo $q; puts out the query perfectly.
what could be the reason its not executing?