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<br>Query:
                 SELECT                   location_id,                  `database`,                  ordering_enabled,                  delivery_enabled,                  web_only,                  takeout_enabled,                  schedule_enabled,                  asap_enabled,                  hours,                  location_name,                  address,                  address2,                  city,                  state,                  zip,                  phone,                  fax,                  email,                  accept_cash,                  unavailable_item_action,                  unavailable_item_text,                  strict_delivery,                  location_image_path,                  timezone,                  pdf_menu,                  online_only,                  allow_custom,                   api_id,                  api_key,                  api_nick,                  api_location_id,                  allowQuantity,                  allow_sendnow,                  allow_coupon,                  takeout_ready_time,                  delivery_ready_time,                  min_schedule_time,                  max_order,                  takeout_message,                  delivery_message,                  takeout_scheduled_message,                  delivery_scheduled_message,                  schedule_delayed_message,                  authnet_enabled,                  AES_DECRYPT(`authnet_api_id`,'pinetree@hq') AS authnet_api_id,                  AES_DECRYPT(`authnet_trans_key`,'pinetree@hq') AS authnet_trans_key,                  vantiv_enabled,                  AES_DECRYPT(`vantiv_merchant_id`,'pinetree@hq') AS vantiv_merchant_id,                  AES_DECRYPT(`vantiv_password`,'pinetree@hq') AS vantiv_password,                  testmode,                  hide_in_testmode,                  additional_emails,                  vantiv_avs_mode,                  required_curbside,                  curbside_message,                  redirect_url                FROM locations                 WHERE parent_site = 