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 (18652,3,18353,4765,18894,17981,3883,44865,18900,24438,17755,44836,45177,17848,17556,44711,44845,45262,13988,28530,18427,17657,18301,4686,45421,44669,17335,22509,18279,17771,34194,19057,45180,28313,32454,44858,45561,17092,17839,17703,8753,18648,44863,45346,44884,44685,44674,5410,44855,44851,44875,45517,24441,45516,18688,44870,44866,44867,17835,37267,44861,44894,36472,18794,45567,31354,17009,44856,44767,18446)
Unknown column 'np.person' in 'where clause'