|  | @@ 2942-2952 (lines=11) @@ | 
                                                            
                                    | 2939 |  | 		} | 
                                                            
                                    | 2940 |  | 		//now, just verify they didn't pass anything wack | 
                                                            
                                    | 2941 |  | 		foreach ( $query_params as $query_key => $query_value ) { | 
                                                            
                                    | 2942 |  | 			if ( ! in_array( $query_key, $this->_allowed_query_params, true ) ) { | 
                                                            
                                    | 2943 |  | 				throw new EE_Error( | 
                                                            
                                    | 2944 |  | 					sprintf( | 
                                                            
                                    | 2945 |  | 						__( | 
                                                            
                                    | 2946 |  | 							"You passed %s as a query parameter to %s, which is illegal! The allowed query parameters are %s", | 
                                                            
                                    | 2947 |  | 							'event_espresso' | 
                                                            
                                    | 2948 |  | 						), | 
                                                            
                                    | 2949 |  | 						$query_key, | 
                                                            
                                    | 2950 |  | 						get_class( $this ), | 
                                                            
                                    | 2951 |  | //						print_r( $this->_allowed_query_params, TRUE ) | 
                                                            
                                    | 2952 |  | 						implode( ',', $this->_allowed_query_params ) | 
                                                            
                                    | 2953 |  | 					) | 
                                                            
                                    | 2954 |  | 				); | 
                                                            
                                    | 2955 |  | 			} | 
                                                                                
                                |  | @@ 3624-3626 (lines=3) @@ | 
                                                            
                                    | 3621 |  | 		if($field_obj instanceof EE_Model_Field_Base){ | 
                                                            
                                    | 3622 |  | 			return $wpdb->prepare($field_obj->get_wpdb_data_type(),$this->_prepare_value_for_use_in_db($value, $field_obj)); | 
                                                            
                                    | 3623 |  | 		}else{//$field_obj should really just be a data type | 
                                                            
                                    | 3624 |  | 			if( ! in_array($field_obj,$this->_valid_wpdb_data_types)){ | 
                                                            
                                    | 3625 |  | 				throw new EE_Error(sprintf(__("%s is not a valid wpdb datatype. Valid ones are %s", "event_espresso"),$field_obj,implode(",",$this->_valid_wpdb_data_types))); | 
                                                            
                                    | 3626 |  | 			} | 
                                                            
                                    | 3627 |  | 			return $wpdb->prepare($field_obj,$value); | 
                                                            
                                    | 3628 |  | 		} | 
                                                            
                                    | 3629 |  | 	} |