SELECT * FROM cms_shortlinks 
WHERE shortlink_value = :value
OR shortlink_id IN (:ids)