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 (17756,24411,44851,44762,17771,8753,44640,45346,14402,17237,44711,24438,44863,18900,44865,44858,18172,24441,28313,17839,17703,44848,17904,19078,17335,44855,17351,45421,18237,44531,18430,44768,30135,16885,44745,18353,44854,18648,44669,44873,45177,45518,44849,44869,45072,44856,31354,45262,44894,37057,44878,18572,18719,17527,18301,44870,17848,45043,10402,45517,17009,17657,18446,45042,45516,6782,45277,44671,13,44867)
Unknown column 'np.person' in 'where clause'