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 (44853,17703,43800,44685,3883,18172,14402,18446,44762,45180,44866,44873,45561,6782,44869,5259,18185,44674,45516,4686,17839,44854,44531,13988,28313,18794,13,17981,8753,45043,44669,18279,45567,45042,45277,17237,18301,44878,18042,32454,24411,6862,44764,31354,45262,17278,6609,44765,17092,44849,17351,17492,19078,9341,22509,18237,44711,18996,17601,17904,18719,18427,5410,18353,16935,24438,45518,24441,44855,45346)
Unknown column 'np.person' in 'where clause'