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 (44894,45262,44851,45421,45517,44875,44687,18794,44669,24412,37267,14402,17848,18900,44858,28530,45516,45229,17527,45051,18652,32454,44766,22509,5993,24441,44848,17492,13988,44765,18688,17114,44866,45346,17839,44855,18237,8753,44767,3,44873,24438,18996,45561,44764,17601,18894,18572,44836,44853,44739,44835,4686,17835,17657,18286,37057,5388,18185,28313,17904,44868,44867,18981,18430,44689,44762,45042,45072,17703)
Unknown column 'np.person' in 'where clause'