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 (44766,18572,45561,44884,44835,4765,17756,18652,18794,44865,44671,44837,18688,45072,44674,18172,44863,13,9341,17009,5410,45262,44873,18894,18430,22509,16885,45180,39676,17278,45515,44775,45051,18996,44878,44875,18719,18185,17771,44767,44894,44851,17904,28530,17981,44849,5259,31354,10402,13988,44765,44868,45177,44685,6875,17703,4686,43800,45286,44745,18301,30963,17755,6782,17527,18446,18353,30135,17092,45043)
Unknown column 'np.person' in 'where clause'