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 (5388,44894,17556,18301,44767,5993,13988,44689,45567,6862,18353,44873,24412,18900,17981,45518,44861,32454,37267,18572,16885,44851,44865,18996,17237,18172,45072,3,4765,5410,45421,18719,44766,18688,18427,44531,14402,45043,44674,44845,17351,45042,19057,17703,45561,17657,30135,6782,39676,44878,13922,44764,8753,45051,19078,13425,45180,17848,45516,45286,17092,43800,44765,18185,17335,18794,37057,44837,18042,24441)
Unknown column 'np.person' in 'where clause'