I am experiencing a strange thing while excecuting an sql query
SELECT *
FROM clients
WHERE id IN
(SELECT DISTINCT clientId
FROM quotes
WHERE storeEmail LIKE '%something@example.net%')
Now Result of SELECT DISTINCT clientId FROM quotes WHERE storeEmail LIKE '%something@example.net%'
has only few items like 10-20 but when i run above query, the entire phpmyadmin stucks and database starts to crash. What is wrong?