I have database structure like this: Table tickets: -- Main table id | no | building_code Table addresses: -- Secondary table employee_id | building_id
In the PHP code i