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 (18427,45277,44894,18719,45515,39676,17092,17492,17601,4765,19078,5993,17904,44767,45518,30135,45229,32454,44873,17556,31354,3,18572,17848,5410,17756,17009,24411,45567,22509,9341,18042,44765,17839,30963,45051,17278,13988,17981,44674,44849,17527,18650,44739,17114,18794,17771,6862,18688,24441,44865,44640,6782,44884,37267,45346,10402,18996,28313,45043,44775,44845,44861,44866,18185,17335,17351,5259,18301,44766)
Unknown column 'np.person' in 'where clause'