Social Democrats justice spokesperson questioned why people were being left at overcrowded jails without prior warning