You have an error in your SQL syntax near 'WHERE 1=1 AND p_code= ORDER BY ref DESC,answer asc,num asc,re_level desc ' at line 1