MySQL query not returning results if more than 2 tables specified -
I have this very easy MySQL query that is working fine on a server setup
SELECT *, o.status as st, o.token as tk, o.datetime as dt fROM p_orders o, p_courses c, p_orders_payments p I have transferred the site / database different server (similar data and structure etc) and everything works differently from the above queries. Well, it works but it gives zero results. If I remove the last part p_orders_payments p , then the result is removed, it is almost so that it can not select more than 2 tables at a time. Is there a setting,
The original server was a self-configured CentOS box, the new server was a Customer's CPanel account
Barmar's comment is correct. For some reason the p_order_payments was empty.
Comments
Post a Comment