SELECT id FROM model m LEFTJOIN(SELECT model_id FROM model_has_keyword GROUP BY model_id ORDER BYsum(timesCount)ASCLIMIT1) order ON m.id = order.model_id ORDER BY m.id ASCLIMIT1
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!