Introduce handling for query argument length mismatches