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 (44689,19057,17527,44745,5410,44884,45177,17848,44766,45043,18572,44863,16885,13988,17771,22509,6782,17556,8753,34194,3,45229,44765,45421,45518,18446,24411,6609,18237,44849,6862,18894,17703,18981,9341,45516,45517,17114,39676,18286,18719,44856,30135,10402,44855,44669,18185,17278,17657,13425,5993,45346,18042,37267,44848,45567,44845,24412,45515,44687,18427,44858,44870,17981,44768,24441,44853,44685,18430,44867)
Unknown column 'np.person' in 'where clause'