SELECT
							ID, title, subtitle, description, image
						FROM salihin_cms.preset_page
						WHERE status = 'ACTIVE'
						AND  LOWER(controller) = 'cms' 
						AND  LOWER(method) = 'album'  AND (
									PARAM IS NULL
									OR
									(
										param IS NOT NULL
										AND (
											LOWER(param) LIKE '%detail/1%'
											OR
											'detail/1' LIKE CONCAT('%',LOWER(param),'%')
										)
									)
								)  LIMIT 0,1