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 (17771,5259,45043,44775,17839,10402,5993,45421,18427,32454,17492,5388,6782,5410,17703,17237,44854,18648,44765,18572,44849,44745,17848,44531,44865,45262,45229,18996,45177,45042,45515,17904,18279,18430,44894,44762,44878,4686,39676,17756,44671,44739,44870,13988,17657,44884,44863,44711,37057,44764,45516,17835,6609,3883,8753,44851,17981,17527,17601,44866,45277,9341,45346,30963,44869,28313,44868,17556,45561,34194)
Unknown column 'np.person' in 'where clause'