Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (6782,44849,18172,13922,5993,44775,31354,32454,44884,45051,36472,45043,44836,17092,45561,44858,18688,16885,17009,6862,17351,17556,5410,44865,4686,17335,44764,18648,44878,28313,28530,19078,18430,44765,44845,45277,17771,45346,44674,45177,43800,18237,17114,30986,30135,44531,45180,44851,45072,44745,17835,18794,9341,24411,44671,18572,18894,18719,45042,17904,45567,44873,44867,44711,10402,18185,18996,44875,44856,44854)
Unknown column 'np.person' in 'where clause'