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,17601,22509,30986,6875,37267,44856,17839,18894,44878,44767,14402,17114,4765,18279,44854,19078,18900,45346,17657,39676,44865,3,45286,44687,44711,18572,5259,44835,45177,44853,17351,44739,44848,44837,18301,44894,45561,5388,17756,44851,17755,18794,13425,44861,17335,44762,18981,44775,45229,6862,17237,44745,44849,45421,17092,44868,17492,8753,45051,44640,44867,18427,44884,17771,44669,45262,45042,44765,30963)
Unknown column 'np.person' in 'where clause'