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 (17981,44873,18042,5259,44764,36472,5410,44848,18719,5388,44854,44837,44849,10402,24441,45516,17335,17835,18286,17756,45177,44640,18650,17556,18794,13425,14622,17237,18237,44836,17703,44867,18185,44687,6782,44853,30986,24412,17848,44745,39676,45042,17527,44689,4765,43800,37057,17771,44845,18446,44674,6609,24411,28313,44875,32454,44671,17351,18279,18688,44851,34194,44863,17601,4686,18652,44762,18427,44766,9341)
Unknown column 'np.person' in 'where clause'