When you want so as to add a filter to higher than benefits depending on a relation like table1.id = table2.id You need to use Internal JOIN: +----+-------------+--------------------+------------+-------+-------------------------------------------------+-------------------------------------------------+---------+-------------------------------+----------+----------+-------------------... https://joshuadoolkelowna79900.bloggerswise.com/44333891/5-simple-techniques-for-how-to-join-outlaw-motorcycle-clubs