H
H
HappyCougar2015-07-07 11:57:06
MySQL
HappyCougar, 2015-07-07 11:57:06

Correct condition for multiple request?

SELECT fab_price.*, users.first_name, users.second_name, users.company FROM fab_price LEFT JOIN users WHERE fab_price.name = '$type_name' AND users.id = fab_price.parent_id

I have this code, it doesn't work. I think the jamb in the conditions, but not sure. Can you suggest how to make this request correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-07-07
@HappyCougar

SELECT fab_price.*, users.first_name, users.second_name, users.company FROM fab_price LEFT JOIN users ON users.id = fab_price.parent_id WHERE fab_price.name = '$type_name'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question