SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and T2_N_N >0 order by prn_o,tipo,sex,cat,T2_N_N,numero' at line 1