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 (44854,18648,13425,17848,18900,5259,44867,45518,18172,44739,44849,44764,17835,44865,44875,44775,17335,4686,44868,18981,6875,6782,36472,17278,45516,44837,28530,17756,17351,45346,39676,18279,44835,24441,45567,18719,18794,44851,8753,45051,44845,31354,18353,17556,44674,44685,44768,44861,45177,44853,44873,18652,17009,44866,17092,5410,44884,44858,5993,18042,3,24411,43800,44870,19057,17755,44766,9341,13922,18430)
Unknown column 'np.person' in 'where clause'