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 (45177,5410,17335,37057,44865,17904,44858,44884,45277,45072,17756,44845,30986,45421,17092,17771,6875,45262,24441,45517,18900,8753,44848,17527,3,18794,17755,44837,37267,4765,45561,34194,44875,44873,16885,10402,44851,45051,18279,17703,16935,18430,18042,44767,18996,44861,18185,18648,24411,30963,17492,44870,44768,44766,18688,44762,44674,18353,22509,44775,24412,6782,44869,44711,45286,44849,17839,18301,13425,5993)
Unknown column 'np.person' in 'where clause'