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 (6609,18446,9341,18996,37267,19078,6782,44867,44640,45229,17839,17703,44884,44765,44855,17335,17527,45277,18353,17114,18279,18648,18237,44856,45177,44869,44745,44845,31354,16885,44873,45561,45051,44531,44687,13988,45567,44775,44863,44866,19057,44711,18172,32454,45515,45072,44669,44764,44837,39676,6862,18286,24438,18427,28530,45286,44865,45262,3,18900,5993,14622,44851,30963,45421,18430,17981,17556,18652,44868)
Unknown column 'np.person' in 'where clause'