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 (5388,17601,44848,44739,16885,18172,34194,17278,3,6862,18688,44868,44884,45286,45051,18185,44870,6609,44689,17335,44837,45229,45518,44869,44853,17848,10402,44685,45516,45517,18652,45421,44873,19057,44861,22509,4686,44863,44669,44671,30986,6875,17835,18430,17755,18353,18900,44765,13922,28313,44851,44858,5259,44855,44867,3883,39676,44894,13,17771,45277,44875,44767,45180,36472,44865,18446,17904,18237,24441)
Unknown column 'np.person' in 'where clause'