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 (45286,31354,19078,45043,45277,18430,44865,44669,17904,9341,44894,44884,18301,17835,17703,18279,45180,18446,44863,44869,17556,28313,44856,17839,44868,18237,17492,18688,18286,17848,18981,17657,44861,44766,24438,44685,18427,44764,30986,17771,18894,44674,5259,44531,44711,5993,44851,43800,45518,17237,45042,13425,14622,37267,8753,14402,10402,18185,18353,45262,5410,45421,45516,44765,18648,13,17114,45515,32454,17527)
Unknown column 'np.person' in 'where clause'