There are tables

   users |  socials |  employers
  --------- | -------------- | -------------
  id (Pk) |  id (Pk) |  id (Pk)
  email |  user_id |  facebook_id
  name |  facebook_id |  product_id
  pass |  auth_token |  date

how can you connect these 3 tables to get product_id , facebook_id by user_id user.

    1 answer 1

    as you describe, and connect. in almost live English:

    select * from users left join socials on socials.user_id = users.id left join employers on employers.facebook_id = socials.facebook_id