Debug_die from api/public/api.php : 2918

Array ( [0] => 42000 [1] => 1064 [2] => 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 'LIMIT 1' at line 7 [sql] => SELECT image FROM ticket_defs WHERE ticket_type_id = LIMIT 1 )
SELECT image FROM ticket_defs WHERE ticket_type_id = LIMIT 1
CALLSTACK
  1. include/class/EPdb.php:193
  2. include/class/EPdb.php:169
  3. api/public/api.php:2918
  4. api/upload/image.php:38
  5. /home/ethicalt/manage.ethicaltickets.org/public_html/getimage.php:19