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,18279,18185,44674,44863,44687,18996,44669,18172,13922,17114,44878,45262,39676,17237,44873,31354,44765,13,44869,37267,16885,17556,18430,4765,44531,17351,44845,17756,44711,44875,45567,18900,17278,17335,44836,44868,44762,6782,44767,45561,18286,44640,44865,30135,17981,44689,34194,13988,45286,18301,30963,28313,8753,45518,17703,45517,44867,44766,18446,10402,22509,44884,44858,17755,44856,6609,17839,18427,3883)
Unknown column 'np.person' in 'where clause'