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 (37267,6862,18572,10402,18981,45517,44866,44863,18237,44765,14402,17092,19078,45516,28313,13922,44856,18301,44845,17755,36472,44855,44867,44745,3,44837,5259,18652,17527,18900,44671,18279,18353,17009,44853,44875,13425,9341,5388,18794,16885,44835,18648,17703,18286,45180,45043,44851,39676,18185,34194,24441,44689,18446,45072,18688,44878,45051,44674,44894,44685,45421,45177,18650,44849,44768,13988,3883,24412,45277)
Unknown column 'np.person' in 'where clause'