title: Wordpress : How to print the excuted sql right after its execution
body: <p>I am searching for a way by which i can print the executed sql query just after the  :</p>
  
  <pre><code>$wpdb-&gt;query(
                  $wpdb-&gt;prepare("INSERT 
                                  INTO tbl_watchprosite SET 
                                  keywords=%s,url_to_post=%s,description=%s,
                                  date_captured=%s,crawl_id=%d,
                                  image_main=%s,images=%s,brand=%s,
                                  series=%s,model=%s,condition=%s,box=%s,
                                  papers=%s,year=%s,case_size=%s,status=%s,listed=%s,
                                  asking_price=%s,retail_price=%s,payment_info=%s,forum_id=%d",
                                  $this-&gt;getForumSettings()-&gt;search_meta,$element-&gt;href,$post_meta['description'],current_time('mysql'),$cid,$post_meta['image_main'],$images,$post_meta[0],$post_meta[1],$post_meta[2],$post_meta[3],$post_meta[4],$post_meta[5],$post_meta[6],$post_meta[7],$status,$post_meta[9],$post_meta[10],$post_meta[11],$this-&gt;getForumSettings()-&gt;ID)
              );
  </code></pre>
  
  <p>This would be great if i can see what values are going in the query.</p>
  
  <p>Thanks </p>