I’m attempting to get the information from the brews and recipes tables based off of how many followers there are in table follow, but I am getting an sql error because I am returning more than one result in my query. Should I split this up in to two queries? Or is there as work around that would allow me to check for more than one b.uid in my outer WHERE statement
SELECT
b.bid AS bid, b.name AS bname,
r.name AS recipe, b.status AS status,
r.rid, a.f_name, a.l_name, a.pic_loc, a.uid AS uid
FROM
recipes r, brews b, account a
WHERE
b.uid = (SELECT followed FROM follow
WHERE follower = '#cookie.id#')
AND b.rid = r.rid AND b.uid = a.uid
GROUP BY b.bid
ORDER BY b.time DESC
Just use
WHERE b.uid IN (SELECT followed...