Do a search in your files for parts of those queries. I assume you have a copy of the full query, so it will be easier for you to search for them and locate the correct ones. But, usually it isn't those queries that are the problem - it's the query performed right before them that locked the tables that is the problem. Check the times on these and see if they show up at the same time - perhaps a cron job/scheduled task is being run that is causing the problem.
|