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 (36472,17657,22509,17335,17703,44739,17527,18237,13,30135,44765,44745,28313,18427,37057,3883,44868,44884,17556,18688,31354,44711,45277,17839,4765,18652,18996,44764,17835,44775,45051,28530,17756,17904,44685,17092,45517,6609,39676,44873,17601,18185,18650,45286,44767,6862,44858,5993,44894,44851,44837,34194,19078,44878,24412,45561,18286,10402,4686,6875,17981,44875,18172,44870,17771,5259,18042,44861,30963,9341)
Unknown column 'np.person' in 'where clause'