Jas: I'm fairly sure my query is right - when I run the query by querying the MySQL db directly it returns the relevant records. I tried inserting your code:
PHP Code:
echo $query;
$results = MySQL_Query($query) or die(MySQL_Error());
But wasn't 100% sure where I should insert it, I placed it beneath the line:
PHP Code:
$result = mysql_query($query)
I still received the same error as before with no more helpful info. Re privileges + permissions, I've checked this and have used the
root@localhost user which has full permissions but it's still giving me the error.