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 (16935,44861,45517,45051,4686,17237,4765,17771,24441,44767,17835,17278,5993,44531,44866,44854,44775,37267,39676,45180,44851,18688,17601,45229,17703,45286,44689,5410,18650,17904,22509,32454,17492,44762,43800,44837,17848,18900,6609,31354,19057,44764,14622,30135,5388,18981,44671,45043,13,44858,44836,44848,18042,44868,19078,24412,13425,18353,44870,17981,17114,17839,44640,3,6782,18430,17527,30986,45516,44849)
Unknown column 'np.person' in 'where clause'