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 (18185,44868,30135,44711,45567,18719,44762,19078,22509,31354,6862,18688,44685,44766,24441,44837,44835,18301,17335,18286,17351,45051,17839,17904,17601,37057,44765,45518,17848,17657,10402,44836,44775,17756,44875,44669,17009,24412,18981,44856,44764,18794,6609,4686,44768,17492,44531,18996,44884,44870,45516,6875,45346,17755,17703,36472,14402,44873,45561,5410,18353,5259,45177,44849,6782,44671,18237,44866,44878,44867)
Unknown column 'np.person' in 'where clause'