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 (17092,43800,16935,44875,30986,45072,17755,44873,44671,17981,44861,45051,18185,6782,44869,45567,45517,24411,44640,44863,14402,19078,44711,18688,44765,44767,39676,18446,44762,18719,45346,45177,44866,44674,18572,45277,44867,17335,45515,18042,18996,36472,44845,44669,13,17848,5259,18894,44865,8753,18794,45286,45518,44835,9341,44745,28313,5993,44894,5388,37057,45561,17351,44851,16885,18430,13425,45421,17657,37267)
Unknown column 'np.person' in 'where clause'