Error

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 (webcal_entry.cal_create_by = '__public__' OR webcal_entry_user.cal_login = ' at line 1
SELECT webcal_entry.cal_id FROM webcal_entry, webcal_entry_user WHERE webcal_entry.cal_id = webcal_entry_user.cal_id AND webcal_entry.cal_id = AND (webcal_entry.cal_create_by = '__public__' OR webcal_entry_user.cal_login = '__public__')