質問

how can I make this work?

$current_id=5;
SELECT Id FROM table1 WHERE Output='yes' and Time>(SELECT Time FROM table2 WHERE Id="'.$current_id.'") ORDER BY Time

Thanks!

役に立ちましたか?

解決

Verify that $current_id actually has a value. Then check whether the subquery returns a value.

The query itself looks proper

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top