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 (44764,45346,18894,18427,17335,32454,44894,44875,44853,44861,6862,44835,44869,17703,17009,5259,44884,18794,45286,45229,36472,17756,22509,44858,45518,44767,18900,44685,18648,17492,45517,17839,17351,44762,44870,18185,3,13425,18996,44854,4686,10402,44674,18446,45515,24411,17835,8753,44863,30135,45421,44848,45516,44671,44873,14622,30963,28530,44865,31354,14402,44867,18981,30986,19057,17237,44765,18301,5410,6782)
Unknown column 'np.person' in 'where clause'