How to make query like this:
SELECT column1 FROM table1 WHERE ppp=$parameter
AND (SELECT * FROM table2 WHERE parameter=$parameter AND qweqwe=$parameter2)
PS: ‘$’ not from PHP, I just show that this values are variable.
Actually, I need AND qweqwe<650 in the second query
Maybe something like this: