I am having an issue with the following:
PHP Fatal error: Out of memory (allocated 37748736) (tried to allocate 16384 bytes) in ....../public_html/includes/classes/db/mysql/query_factory.php on line 44

I am trying to figure out exactly what is causing the extreme memory usage as I have 1028mb set of PHP in the server settings which I believe to be quite large.

For this reason I think its possible a plugin I am using which could be causing the error.

What would be the best method for determining the memory problem

Thanks!