Good day. Please help with query optimization:
SELECT * , b.`id` AS bid, u.`id` AS uid, cd.`open_n` , cd.`close_n` FROM `bills` AS b LEFT JOIN `users` u ON u.`id` = b.`author` LEFT JOIN `close_docs` cd ON cd.`bill_id` = b.`id` WHERE b.`check` != "0000-00-00 00:00:00" LIMIT 1303 , 30 EXPLAIN EXTENDED gives:

In close_docs not always lines matching b.id
In bills and close_docs about 3500 records, the query is executed about 25 seconds.
Thank you in advance.