06.04.2014, 14:43
Enable HTML log, and open that HTML log. You can see bad queries highlighted as RED and ORANGE for warning. You can easily find out which query is having issues.
pawn Code:
mysql_log(LOG_ALL, LOG_TYPE_HTML);