prepare function called with incorrect number of values against statement: ( SELECT concat('sid=',dsec_id,'&svid=',sv_id) as params, 'eng' as lang FROM directive_section WHERE LCASE(old_link_url_en) = %1 ) UNION ( SELECT concat('sid=',dsec_id,'&svid=',sv_id) as params, 'fra' as lang FROM directive_section WHERE LCASE(old_link_url_fr) = %1 ) UNION ( SELECT concat('vid=',dv_id) as params, 'eng' as lang FROM directive_version WHERE LCASE(old_link_url_en) = %1 ) UNION ( SELECT concat('vid=',dv_id) as params, 'fra' as lang FROM directive_version WHERE LCASE(old_link_url_fr) = %1 ) UNION ( SELECT concat('did=',dsum_id) as params, 'eng' as lang FROM directive_summary WHERE LCASE(old_link_url_en) = %1 ) UNION ( SELECT concat('did=',dsum_id) as params, 'fra' as lang FROM directive_summary WHERE LCASE(old_link_url_fr) = %1 )