You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '''' ORDER BY `blog`.`date_created` desc LIMIT 1' at line 1
SELECT `blog`.`id`, `blog`.`lang_id`, `blog`.`online`, `blog`.`title`, `blog`.`seo_title`, `blog`.`seo_description`, `blog`.`seo_keywords`, `blog`.`category_id`, `blog`.`slug`, `blog`.`subtitle`, `blog`.`text`, `blog`.`youtube`, `blog`.`image`, `blog`.`date_created`, `blog`.`date_updated`, `blog`.`author`, `blog`.`editor`, `auth`.`name` FROM `blog` LEFT JOIN `auth` AS `auth` ON `blog`.`author`=`auth`.`id` WHERE `blog`.`online`= '1' AND `blog`.`slug`!= '' AND `blog`.`lang_id`= '1' AND `blog`.`slug`= '''   ORDER BY `blog`.`date_created` desc LIMIT 1

Fatal error: Call to a member function fetch_assoc() on boolean in /var/www/vhosts/ on line 150