Maximum_memory error on Query execution (ERROR 1712 ER_MEMSQL_OOM)