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 (44863,17492,44669,45518,6862,44674,44689,44765,44837,44878,30135,17237,44685,17839,45567,4686,44856,45286,24438,44767,17756,44671,18981,45072,44854,22509,44894,18301,44764,30963,44768,32454,17114,18353,45346,44849,17351,17771,19057,18042,43800,18794,18427,45043,44739,10402,44855,17009,17848,17335,17981,13425,8753,16935,18446,18572,18719,17278,18900,17657,45051,45515,18286,44868,18996,17556,31354,45421,44870,44866)
Unknown column 'np.person' in 'where clause'