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 (18794,9341,6875,30963,44854,17601,19057,34194,17335,24441,17092,44671,45516,13988,28313,43800,18894,22509,18981,44849,45346,17556,44870,4686,17771,44851,28530,44856,44884,17703,44765,44640,8753,13425,45517,45180,6609,17009,45515,10402,44775,44863,18042,45277,17351,17981,18286,18430,45518,44739,5259,44855,44835,18996,24412,17492,44858,44867,36472,45286,18353,45567,18648,17756,18572,44764,17114,18301,44845,45229)
Unknown column 'np.person' in 'where clause'