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 (18430,18427,45072,45567,17839,45229,44762,45516,37057,18185,39676,17657,44867,45346,45043,14622,45421,44851,17114,45277,28530,17771,24441,45517,24412,45177,5388,44861,44767,16935,44765,44671,31354,44856,17904,45180,18042,37267,17756,44863,17278,44835,17703,17351,44766,17527,44848,19078,44855,44870,43800,44869,18301,18900,17848,6875,44894,34194,17835,44853,19057,10402,18237,18650,22509,28313,44873,17009,44531,32454)
Unknown column 'np.person' in 'where clause'