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 (18981,45277,44867,22509,44687,18237,17278,45561,18648,45286,44762,44836,44739,44768,45516,18427,43800,14402,17601,5259,18172,17703,45072,17771,13922,44764,45043,37057,5410,18353,44894,17092,45515,17527,5993,44856,17114,44873,6862,18279,30963,44766,18446,18794,44685,13425,44775,44858,44767,18719,44671,30135,4765,44745,44868,14622,45421,45346,44870,17556,45042,13988,44711,44855,36472,44869,44853,34194,45180,44689)
Unknown column 'np.person' in 'where clause'