WPDB Table Does Not Exist August 17, 2022 by Tarik Billa You can’t use wpdb::prepare to inject table names – just use "SELECT ... $sidebar_table"