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 (44854,45518,45517,45421,45346,44869,44767,13988,44671,18427,14622,44768,45229,17278,18572,45262,6875,39676,43800,18430,18286,28530,24412,18652,3883,44687,6609,34194,44762,44856,44866,44669,18900,18794,18301,13922,45516,45177,44861,44863,14402,44531,44858,9341,44689,44765,18446,17848,44745,5993,18894,18172,44835,17335,5259,17657,45042,30963,17755,44884,17114,18353,44849,17237,37267,37057,44851,17092,44873,45051)
Unknown column 'np.person' in 'where clause'