Trying to optimize slow MySQL query

Printable View