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 (44669,44855,10402,17114,18981,44531,44835,17904,44766,18688,18794,45229,17556,44853,17237,18427,28530,44764,17351,18353,18719,9341,45517,4765,17492,44671,18301,44689,24438,45262,45042,4686,44868,16885,28313,17703,18286,13425,6609,19078,45561,18894,18279,18572,44837,31354,44861,18446,18652,6875,44884,44845,22509,44858,44878,13988,44873,14402,43800,44739,45286,44767,19057,45043,32454,18648,5259,17335,44745,17848)
Unknown column 'np.person' in 'where clause'