Warning: mysqli::query(): (HY000/23): Out of resources when opening file '/tmp/#sql_77ed_0.MAD' (Errcode: 24 "Too many open files") in /var/home/citymaker/www/lib/DatabaseMysql.php on line 184

Fatal error: Uncaught DatabaseMysqlException: #23: Out of resources when opening file '/tmp/#sql_77ed_0.MAD' (Errcode: 24 "Too many open files") Query: SELECT SQL_CALC_FOUND_ROWS p.* FROM posts p INNER JOIN post_keys pk ON (pk.post_id=p.id) AND (pk.feed_key='17P1') WHERE (cat_id=543) AND (p.published=1) ORDER BY pk.post_time DESC LIMIT 0,20 in /var/home/citymaker/www/lib/DatabaseMysql.php:216 Stack trace: #0 /var/home/citymaker/www/lib/DatabaseMysql.php(186): DatabaseMysql->check_reconnect('query', Array) #1 /var/home/citymaker/www/lib/DatabaseMysql.php(661): DatabaseMysql->query('SELECT SQL_CALC...') #2 /var/home/citymaker/www/lib/DBObject.php(178): DatabaseMysql->select(Array, 'p.*', Array, Array) #3 /var/home/citymaker/www/lib/model/Post.php(879): DBObject::select(Array, 'p.*', Array, Array) #4 /var/home/citymaker/www/lib/portal/posts_base.php(344): Post::select(Array, 'p.*', Array, Array) #5 /var/home/citymaker/www/lib/portal/posts.php(95): Posts_Base->run() #6 /var/home/citymaker/www/lib/Controllers.php(121): Portal_ in /var/home/citymaker/www/lib/DatabaseMysql.php on line 216