Unhandled Exception

Message:

wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (2) for the number of arguments passed (3). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)

Location:

/home/mb-wp-www/www/htdocs/cms/wp-includes/functions.php on line 4773

Stack Trace:

#0 /home/mb-wp-www/www/htdocs/content/mu-plugins/themosis-framework/bootstrap/start.php(175): Themosis\Error\Error::native(1024, 'wpdb::prepare w...', '/home/mb-wp-www...', 4773)
#1 [internal function]: THFWK_Themosis->{closure}(1024, 'wpdb::prepare w...', '/home/mb-wp-www...', 4773, Array)
#2 /home/mb-wp-www/www/htdocs/cms/wp-includes/functions.php(4773): trigger_error('wpdb::prepare w...')
#3 /home/mb-wp-www/www/htdocs/cms/wp-includes/wp-db.php(1373): _doing_it_wrong('wpdb::prepare', 'The query does ...', '(This message w...')
#4 /home/mb-wp-www/www/htdocs/content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-404-guess.php(101): wpdb->prepare('ORDER BY CASE t...', Array, 3, 2)
#5 /home/mb-wp-www/www/htdocs/content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-404-guess.php(58): WPML_404_Guess->order_by_language_snippet(false)
#6 /home/mb-wp-www/www/htdocs/content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(358): WPML_404_Guess->guess_cpt_by_name('legal-informati...', Object(WP_Query))
#7 /home/mb-wp-www/www/htdocs/content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-query-parser.php(252): WPML_Query_Parser->maybe_adjust_name_var(Object(WP_Query))
#8 /home/mb-wp-www/www/htdocs/content/plugins/sitepress-multilingual-cms/sitepress.class.php(3736): WPML_Query_Parser->parse_query(Object(WP_Query))
#9 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp-hook.php(286): SitePress->parse_query(Object(WP_Query))
#10 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#11 /home/mb-wp-www/www/htdocs/cms/wp-includes/plugin.php(531): WP_Hook->do_action(Array)
#12 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp-query.php(1067): do_action_ref_array('parse_query', Array)
#13 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp-query.php(1740): WP_Query->parse_query()
#14 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp-query.php(3404): WP_Query->get_posts()
#15 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp.php(622): WP_Query->query(Array)
#16 /home/mb-wp-www/www/htdocs/cms/wp-includes/class-wp.php(739): WP->query_posts()
#17 /home/mb-wp-www/www/htdocs/cms/wp-includes/functions.php(1105): WP->main('')
#18 /home/mb-wp-www/www/htdocs/cms/wp-blog-header.php(16): wp()
#19 /home/mb-wp-www/www/htdocs/index.php(10): require('/home/mb-wp-www...')
#20 {main}