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 (6609,45043,45262,44837,44685,45286,17839,44711,45518,18279,19078,44765,37057,17755,45517,45042,17981,18572,44764,44867,18427,4686,45567,44855,44853,44687,18353,5410,17237,18996,44689,44848,34194,6875,17351,45072,45177,44674,19057,9341,45180,44767,18794,24412,44856,28530,44851,17492,44863,44865,17657,5259,5388,17092,8753,13,24411,44669,30963,45516,44671,13425,44868,44894,17756,44866,17114,28313,44861,18237)
Unknown column 'np.person' in 'where clause'