array(2) {
  [0]=>
  array(4) {
    ["file"]=>
    string(78) "/var/www/vhosts/carolinecharles.co.uk/httpdocs/includes/functions/database.php"
    ["line"]=>
    int(67)
    ["function"]=>
    string(12) "tep_db_error"
    ["args"]=>
    array(3) {
      [0]=>
      &string(67) "select disable_addtocart from categories c where c.categories_id = "
      [1]=>
      &int(1064)
      [2]=>
      &string(146) "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 '' at line 1"
    }
  }
  [1]=>
  array(4) {
    ["file"]=>
    string(63) "/var/www/vhosts/carolinecharles.co.uk/httpdocs/product_info.php"
    ["line"]=>
    int(70)
    ["function"]=>
    string(12) "tep_db_query"
    ["args"]=>
    array(1) {
      [0]=>
      &string(67) "select disable_addtocart from categories c where c.categories_id = "
    }
  }
}
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 '' at line 1

select disable_addtocart from categories c where c.categories_id =

[TEP STOP]