You have an error in your SQL syntax near 'AND approvato='Y' ORDER BY sottoordine ASC' at line 1