Execute - SELECT nr FROM lot_bild WHERE lot= order by flag_icon desc,nr - blieb erfolglos: 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 'order by flag_icon desc,nr' at line 1 at /var/www/vhosts/reiseauktion.ms/mspoa/public/cgi-bin/libary/ms2015.pm line 194.