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 (44640,18237,44764,17755,44848,17527,45180,34194,4765,18353,44775,17114,44685,22509,45567,45421,17703,16935,44671,44837,44894,44854,18572,5388,16885,44863,45286,19057,45051,45043,18794,17835,44867,37057,45177,18042,45072,39676,18446,44531,18652,45229,13,18279,18172,17839,18650,28530,45346,17904,17981,10402,17601,17278,44851,4686,13988,44765,18427,18719,44836,30963,18286,44865,44835,6609,17848,36472,17771,5410)
Unknown column 'np.person' in 'where clause'