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 (44861,44884,44739,44875,43800,28530,18353,5388,44835,44766,24441,17755,17771,17278,24411,18981,13988,45051,44764,45561,45180,44868,3,18446,18279,16885,18652,13,34194,39676,17351,24412,44869,18237,10402,18301,17904,45346,44745,44856,17703,44849,18172,44671,19057,18894,45072,18572,17556,5410,18286,44851,44687,18996,18427,44689,45277,45229,44845,44674,17756,45517,45518,17981,28313,4765,30963,17009,18794,44711)
Unknown column 'np.person' in 'where clause'