title: A last part in query is not working
body: <p>I have some code, but <code>$query_last</code> is not working, previous  identica part <code>$query</code>  -without problems.</p>
  
  <p>I Don't understand what the problem is.</p>
  
  <pre><code>&lt;?php
      if ($_SERVER["REQUEST_METHOD"]=="POST"){
          require 'connect_k.php';
          createMessage();
      }
  
      function createMessage(){
          global $connect;    
          $email = $_POST["email"];
          $price_main = $_POST["price_main"];
          $date = $_POST["date"];
          $order_number = $_POST["order_number"];
          $query="INSERT INTO final(email,name,size,quantity,price)SELECT email,name,size,quantity,price FROM items_cart WHERE email like ('$email');";
          $query_del="DELETE FROM items_cart WHERE email like ('$email');";
          $query_upd="UPDATE final SET price_main='$price_main',order_number='$order_number',date='$date' WHERE email like ('$email');";
  ----problem is here----
          $query_last="INSERT INTO order(email,name,size,quantity,price,price_main,order_number,date)SELECT email,name,size,quantity,price,price_main,order_number,date FROM final WHERE email like ('$email');";
          mysqli_query ($connect,$query)or die (mysqli_error($connect));
          mysqli_query ($connect,$query_del)or die (mysqli_error($connect));
          mysqli_query ($connect,$query_upd)or die (mysqli_error($connect));
          mysqli_query ($connect,$query_last)or die (mysqli_error($connect));
          mysqli_close($connect);
      }
  ?&gt;
  </code></pre>