I have installed Zencart 1.3.7 using Xaamp. I'm having the following error at the top of my page after installing Chemo's URL Add on:

Warning: Variable passed to each() is not an array or object in X:\xampp\htdocs\mywebsite\includes\classes\db\mysql\query_factory.php on line 114

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at X:\xampp\htdocs\mywebsite\includes\classes\db\mysql\query_factory.php:114) in X:\xampp\htdocs\mywebsite\includes\functions\sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at X:\xampp\htdocs\mywebsite\includes\classes\db\mysql\query_factory.php:114) in X:\xampp\htdocs\mywebsite\includes\init_includes\init_templates.php on line 78


at the bottom of the page I get this other error message:

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 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUC' at line 7
in:
[select p.products_id, pd.products_name, products_date_available as date_expected from products p, products_description pd where p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' and p.products_date_available >=20070806 order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS]


Could anybody tell me what this mean and how to fix it?

Thanks