SQL:select id,userID,num_progressivo,stato,inizio_consegna,fine_consegna,ritiro,orario_accettato,totNum,importo_finale as totale,create_time from cash_shop_ordine where userID= and pagato!=1 order by orario_accettato asc,inizio_consegna asc ERROR_INFO:1064,You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and pagato!=1 order by orario_accettato asc,inizio_consegna asc' at line 1