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 (28530,45229,17601,17839,17278,16885,44711,18652,17237,18719,36472,18042,44868,17492,44745,30986,34194,24411,44767,18353,5410,18446,44863,45516,44856,44855,44853,45346,19057,17351,44865,4765,28313,45043,14622,44674,44878,18279,5388,17657,44875,31354,45515,18427,17092,18981,45421,44894,13922,18185,44762,44689,4686,45517,30135,18572,18237,44766,44873,44835,5259,3883,18794,17009,44837,45051,45072,18430,45518,39676)
Unknown column 'np.person' in 'where clause'