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 (6875,6609,43800,44739,17981,44875,17009,17771,24441,18996,13,18648,18652,28530,37267,17848,24412,31354,44762,18446,18301,45518,45346,17092,44858,13922,17278,44861,17703,18572,19078,44873,44854,30963,44848,18794,18688,44674,45262,44836,30986,19057,44687,44856,32454,18237,44764,22509,14622,36472,44685,44868,45516,9341,44869,14402,6862,39676,18900,17114,4765,5410,4686,17755,45180,30135,17835,44711,17237,44531)
Unknown column 'np.person' in 'where clause'