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 (4686,13425,16935,18996,45346,14622,44865,44669,9341,45561,3,44531,45421,18648,44766,18894,13,4765,18042,45516,44767,44894,45042,44861,5410,44762,18279,17839,45262,44867,5259,45286,45043,17237,17703,44674,44711,17601,43800,24412,45515,44768,22509,18301,28313,24441,16885,18650,3883,44640,44687,17009,5993,14402,44765,8753,36472,30986,44739,18185,18427,6862,45277,17755,37267,18900,18794,17904,18652,44875)
Unknown column 'np.person' in 'where clause'