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 (44745,44671,9341,44861,5410,18279,44853,18996,16935,44866,8753,31354,18652,6609,18430,44848,17771,45051,44873,17351,44863,4686,22509,44868,28313,6862,44854,18719,18446,30986,44856,45421,17601,44764,45229,17527,13922,18353,30963,17009,45177,45561,44845,5993,44765,34194,17237,44849,13,17092,17335,17492,17904,14622,18042,37267,6875,18894,45286,44869,18427,17657,19057,44867,44884,44689,16885,45262,44835,44685)
Unknown column 'np.person' in 'where clause'