When i use
SELECT order_id from `order` where `order_id`=U687678601
i get error
ERROR 1054: Unknown Column \'U68767
Order is a reserverd keyword, you should use another name for your table. You could enclose the table name in quotes, like this:
SELECT order_id from `order` where order_id=U687678601
And as for the quoting of values, if the value is of type string, you should use quotes always. If the value is some numeric type, you don't have to, but it won't do any harm to enclose virtually everything.