Can't execute query

			SELECT a.*
			FROM sw_pages a LEFT OUTER JOIN sw_sequences s ON (s.id_table=a.id AND s.table_name='sw_pages')
			WHERE (id_sw_pages_def IN (32)
			AND date_from<NOW() AND date_to>NOW()
			AND visible=1
			AND archived=0
			 AND a.id= )
			OR (date_always=0
			AND visible=1
			AND id_sw_pages_def IN (32)
			AND archived=0
			 AND a.id= )
			ORDER BY  s.sequence
			 LIMIT 0, 10
		

MySQL 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 ') OR (date_always=0 AND visible=1 AND id_sw_pages_def IN (32) AND ar' at line 7

This script cannot continue, terminating.