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 (44687,17527,5388,6782,45421,45286,44775,44875,18237,30963,44711,19057,17981,45346,30986,45042,44837,18719,44853,44863,18430,4686,17703,44640,45517,44869,45262,17335,18353,18427,6875,17755,17904,45567,45177,44671,44766,44765,24441,44868,17771,17756,45072,36472,44884,28313,13,16935,28530,44851,45051,44894,34194,44739,39676,17351,3883,18572,45229,17657,17278,13425,44745,18172,22509,44767,18652,17835,17601,18894)
Unknown column 'np.person' in 'where clause'