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 (17703,45042,24411,17601,17114,39676,24441,14402,37267,44865,18301,44856,44851,17981,44836,44858,6609,45051,44766,18996,17527,44775,18042,45518,44884,44531,17351,17755,44767,44873,30135,13,18237,28313,44745,44869,45180,44837,13922,44764,18446,44835,30986,44849,45043,8753,17839,18688,44854,30963,13425,18650,44762,45515,44687,13988,44868,17904,17335,44845,18427,45277,44765,5259,24412,17771,4686,44878,44711,17092)
Unknown column 'np.person' in 'where clause'