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 (44685,44674,18237,18981,36472,18900,30135,44739,44765,44858,18042,44855,18279,45051,44689,17657,45177,18652,24412,17556,44873,18794,5993,44762,28530,17351,18719,18648,45262,17755,14402,45516,44837,44884,44878,18572,18185,6862,44835,45567,34194,45517,44767,31354,37267,4765,9341,17771,44764,45043,13425,44867,13922,13988,18430,3,5388,44854,17839,39676,44851,17527,44870,17092,45561,45421,10402,6609,44861,28313)
Unknown column 'np.person' in 'where clause'