When writing a table name, you can add a space and an alias...
So in my query, o represents the tbl_order_item table, and p, the celt_product table... I used them to simplify the code...
Let's take a simple query...
SELECT * FROM my_table
Now, let's use an alias...
SELECT mt.* FROM my_table mt
Here, we ask MySQL to use the mt alias to refer to the my_table table. So in the field name statement, we write mt. (we could have left it to "" since there's only one table...)
As soon as you have two tables, it's very useful...
Exemple :
SELECT first_very_long_table_name_that_seems_endless., second_very_long_table_name_that_seems_endless. FROM first_very_long_table_name_that_seems_endless, second_very_long_table_name_that_seems_endless WHERE second_very_long_table_name_that_seems_endless.id=first_very_long_table_name_that_seems_endless.associated_id
Don't you find that a bit too long ?!
So simply it !
SELECT t1., t2. FROM first_very_long_table_name_that_seems_endless t1, second_very_long_table_name_that_seems_endless t2 WHERE t2.id=t1.associated_id