I want to send a select query to a select query and then count the result.
What I want to do is something like this:
SELECT `word_id`, SUM(`is_core`) as `cores` FROM `table` GROUP BY `word_id` ORDER BY `cores` DESC;
And then I want to send a select query to the query above. Something like this:
SELECT * FROM `THE QUERY ABOVE` WHERE `cores` >1;
SELECT FOUND_ROWS();
Any help will be appreciated.