Mysql_Query(): Unable To Save Result Set In

I am moving a site to new Host and get this when trying tp access the shop or the shop admin

Warning: mysql_query(): Unable to save result set in /homepages/9/d551623640/htdocs/fredandgingeroldsite/shop/core/db/mysql.php on line 53

[color=#000000][font=Courier][size=3]Error occured[/size][/font][/color]

This what is in the log table content field

a:2:{s:5:“error”;s:44:“MySQL client ran out of memory (2008)”;s:5:“query”;s:55:“SELECT * FROM cscart_sessions WHERE expiry < 1423727449”;}

Any ideas please as to what to do?