Notice: Trying to get property of non-object in /var/www/html/notsoeasy/store.php on line 54

Notice: Trying to get property of non-object in /var/www/html/notsoeasy/store.php on line 83
Error: 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 ') and (`type` = '12') order by `id` desc limit 1' at line 2