Warning (512): SQL Error: 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 'AND UNIX_TIMESTAMP(date)<=) AND `Event`.`enabled` = 1   ORDER BY `Event`.`date` ' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 526]

Query: SELECT `Event`.`id`, `Event`.`date`, `Event`.`location`, `Event`.`allday`, `Event`.`headline`, `Event`.`detail`, `Event`.`enabled`, `Event`.`end_date`, `Event`.`repeat`, `Event`.`rend_date` FROM `events` AS `Event` WHERE (YEAR(date)=615 AND MONTH(date)=6 OR YEAR(end_date)=615 AND MONTH(end_date)=6 OR UNIX_TIMESTAMP(rend_date)>= AND UNIX_TIMESTAMP(date)<=) AND `Event`.`enabled` = 1 ORDER BY `Event`.`date` ASC

Ministry of Commerce Events
Sun Mon Tue Wed Thu Fri Sat
        1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 

December Events

    Warning (2): Invalid argument supplied for foreach() [APP/views/elements/upcoming_events.ctp, line 7]