SELECT qa_id FROM user_qa WHERE response_id_link IN (SELECT qa_id FROM user_qa WHERE exam_type= AND status_admin > 1 AND response = 0 AND user_id_link = ) AND response = 1 AND datetime_of_comment> ''
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 status_admin > 1 AND response = 0 AND user_id_link = ) AND response = 1' at line 2