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 (17771,17981,45561,44878,44894,44869,45346,44849,18279,44858,44868,45567,18430,44865,44669,34194,44867,8753,18301,44870,18353,44687,45043,9341,5259,30135,44685,44768,17703,44711,6782,44875,17114,17755,24441,17278,17335,18042,24412,24438,17009,13425,44845,17492,30986,18894,17839,44854,18794,19078,18900,45262,45518,31354,18427,13988,44848,44531,45516,44855,44764,44671,28313,17556,44861,17237,13,44866,18286,45286)
Unknown column 'np.person' in 'where clause'