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 (4686,19078,18042,3,18172,34194,18650,10402,44766,17114,44856,44868,45229,17756,31354,17351,18688,45180,8753,44640,24411,45346,13,45262,37267,13425,18794,22509,44855,39676,45051,17527,44762,32454,18572,45421,44835,17278,9341,44674,44851,44894,6862,44867,14622,17092,44863,17556,19057,44849,18353,13922,17904,6875,44837,44853,18900,3883,44775,5410,30986,13988,44873,44866,17839,24412,18996,14402,44764,45286)
Unknown column 'np.person' in 'where clause'