OK, this is the full error I get when both trying to add a new item to the cart after I've logged in and canceled a PayPal purchase AND clicking on "Your Cart":
JDatabaseMySQL::query: 1064 - 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 '5,3, AND file_type = 'product'' at line 1 SQL=SELECT * FROM jos_hikashop_file WHERE file_ref_id IN (,5,3, AND file_type = 'product'
Call stack
# Function Location
1 jsite->dispatch() /homepages/22/d224844873/htdocs/joomla/index.php:68
2 jcomponenthelper::rendercomponent() /homepages/22/d224844873/htdocs/joomla/includes/application.php:124
3 require_once() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/application/component/helper.php:162
4 checkoutcontroller->execute() /homepages/22/d224844873/htdocs/joomla/components/com_hikashop/hikashop.php:36
5 checkoutcontroller->step() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/application/component/controller.php:236
6 checkoutcontroller->before_shipping() /homepages/22/d224844873/htdocs/joomla/components/com_hikashop/controllers/checkout.php:158
7 hikashopcartclass->loadfullcart() /homepages/22/d224844873/htdocs/joomla/components/com_hikashop/controllers/checkout.php:526
8 jdatabasemysql->loadobjectlist() /homepages/22/d224844873/htdocs/joomla/administrator/components/com_hikashop/classes/cart.php:275
9 jdatabasemysql->query() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/database/database/mysql.php:458
10 jerror::raiseerror() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/database/database/mysql.php:231
11 jerror::raise() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/error/error.php:171
12 jexception->jobject() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/error/error.php:136
13 call_user_func_array() /homepages/22/d224844873/htdocs/joomla/libraries/joomla/base/object.php:48
14 jexception->__construct()