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 (13425,19078,13988,5259,44531,44669,17351,6782,4765,24411,18353,17237,14402,45516,17835,18894,17114,45421,6609,45517,44837,44768,17009,10402,22509,45043,17839,44868,18572,44870,44685,45567,24441,44884,18719,16885,44687,5993,18172,18430,44762,45051,4686,37057,18286,44849,44853,44851,45177,18279,37267,6862,17335,44858,18185,44856,17848,6875,44867,17981,44766,45561,30963,45515,18237,19057,18650,18652,14622,44739)
Unknown column 'np.person' in 'where clause'