You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Adris'' at line 1
SELECT id_VIEW FROM tblviews_view WHERE foreign_id_VIEW = '874' AND type_VIEW = 'shop_user_product' AND ip_VIEW = '34.204.169.76' AND date_VIEW = CURDATE() AND extra_VIEW = 'Tamplaru' Adris'