Fatal error: Uncaught Exception: 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 '<br />
<b>Notice</b>: Undefined index: me in <b>/var/www/blkem.com/htdocs/co...' at line 30 query:
SELECT
a.`id`,
a.`status`,
a.`approved`,
a.`user_id`,
v1.`id` as `viewed_id`,
FROM_UNIXTIME(v1.`time`) as `last_viewed_time`,
CURRENT_TIMESTAMP() as `present_time`,
(CASE WHEN (v1.`time` IS NULL AND a.`status`='active' AND a.`approved`='Y') THEN 1 ELSE 0 END) as `apply_view_conversion`,
a.`cover`,
a.`cover_type`,
a.`company`,
a.`target_url`,
a.`views`,
a.`clicks`,
a.`description`,
a.`cta`,
a.`time`,
a.`budget`,
a.`cost_type`,
a.`published_time` ,
u.`avatar`,
u.`username`,
u.`verified`,
u.`assigned_badge`,
CONCAT(u.`fname`, ' ', u.`lname`) AS `name`,
u.`admin`,
u.`wallet`
FROM `cl_ads` a
LEFT JOIN cl_ads_view_click_history v1 ON a.`id`=v1.`ad_id` AND v1.`user_id` = <br />
<b>Notice</b>: Undefined index: me in <b>/var/www/blkem.com/htdocs/core/components/ in /var/www/blkem.com/htdocs/core/libs/DB/vendor/thingengineer/mysqli-database-class/MysqliDb.php on line 1996