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 (45229,39676,18301,45516,17092,44845,4686,44765,17335,44858,34194,17848,45346,13425,45042,17981,17771,18900,44884,45567,17755,6609,45561,44766,18650,18430,45180,44762,44856,44873,14622,44531,44865,24411,17351,44875,44711,44869,44849,44848,37057,22509,17703,44767,45043,18427,5388,18996,16935,44739,45177,8753,5993,30135,13988,18894,18719,44870,18185,17657,44894,44836,17839,9341,28530,17278,44868,44687,45518,18688)
Unknown column 'np.person' in 'where clause'