API: Fixed error with SQL query to check question existence in details CALL