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 (18172,18446,45561,37267,30986,17904,45421,44767,45567,44865,17771,45518,44764,17335,18688,44775,30963,44867,18185,45517,45286,45180,13922,45516,45043,44875,13,17556,30135,44745,44863,22509,18996,44845,44866,34194,44856,4765,45042,17278,10402,17848,3,17237,45072,18286,14622,16885,45229,6862,44851,44861,44640,18279,24438,5410,24411,18652,17114,44869,3883,36472,24412,13988,18719,17835,13425,6782,44873,44854)
Unknown column 'np.person' in 'where clause'