if (is_array($types)) {
            $motive_power_types = " WHERE c.loco_type_id IN (".implode(",", $types).")";
        } elseif (is_int($types)) {
            $motive_power_types = " WHERE c.loco_type_id IN (?)";
            $params[] = $types;