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 (30963,44866,44775,44845,17556,18286,5410,44855,44767,18185,45567,45517,28313,44868,45043,8753,18996,44875,28530,31354,44762,37267,24411,5259,17601,45177,18981,43800,18652,10402,30135,6782,44894,44685,45229,45346,3,44764,44856,34194,17755,22509,45072,17237,44640,18279,13988,18688,44766,44711,44851,45262,14402,44873,30986,44745,6875,45518,44837,36472,44858,17835,17839,18172,5388,44671,44835,18794,45561,17092)
Unknown column 'np.person' in 'where clause'