Hello everyone I need help on an issue that is making a query to a database to make the query I run in phpMyadmin and working properly but by passing the code class.pdf.php gives me an error and I can not print the data.
OsTicket Version : 1.9.12
PHP Version : 5.6.16
MySQL Version : 5.7.9
Code in the query:$sql = 'SELECT value FROM ost_form_entry_values WHERE entry_id=(SELECT id FROM ost_form_entry WHERE object_id= (SELECT user_id FROM ost_ticket WHERE number=803240) AND object_type=\'U\') AND field_id=37';
$res = db_query($sql);Help me please