I am trying to make a query for a search result. Basically I need to search for properties by apartment community and also by the floorplans themselves. I am trying to use a join to accomplish this with this code:
SELECT a.*, b.* FROM ((SELECT * FROM properties WHERE Active = '1') AS a LEFT JOIN (SELECT * FROM floorplans WHERE Size = '1BD%' OR Size = '2BD%') AS b ON (a.PropID=b.PropID)) LIMIT 30
Basically I am trying to have a page of checkboxes with the various options and then just create a variable for each one if it contains a value. The problem I am having now is my join is creating values of NULL in the floorplans columns on the join.
Any help would be greatly appreciated.