Database error: Invalid SQL: select cal_id,cal_title,cal_details,cal_sday,cal_stime,cal_eday,cal_etime,cal_type,cal_status,repeat from calendar where ((UNIX_TIMESTAMP(CONCAT(cal_syear,'-',cal_smonth,'-',cal_sday)) <= 1278053999 && UNIX_TIMESTAMP(CONCAT(cal_eyear,'-',cal_emonth,'-',cal_eday)) >= 1277967600) || (`repeat` = "Y" && cal_smonth = '07' && cal_sday = '1')) && ((cal_status = 'T' || cal_status = 'G' || cal_status = 'A') || (cal_status = 'P' && '' = owner_id)) order by cal_stime
MySQL 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 'from calendar where ((UNIX_TIMESTAMP(CONCAT(cal_syear,'-',cal_smonth,'-',cal_s' at line 1)
Session halted.