php - mysql inner join 3 tables
270
I am getting error. I wonder where did I go wrong? Please could you help?
$tours = mysql_query("SELECT * FROM
tours t
INNER JOIN tour_property_array p
ON
t.tour_id = p.tour_id
INNER JOIN tour_prices tp
ON
p.tour_id = tp.tour_id
AND t.tour_status='Aktif'
WHERE t.tour_category_id=".$category_id."
AND t.date_month ='".$date."'
AND p.tour_propert_id=".$propert_id." "
);
Answer
Solution:
replace it with
Answer
Solution:
Try this one
Answer
Solution:
Answer
Solution:
You are Giving a condition in Join Move it to Where Clause.