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 (44861,45286,18446,18688,34194,6875,16935,45051,44674,22509,30963,44685,36472,30986,17755,18794,44669,18652,44884,43800,18301,17657,45561,44849,14402,44870,6609,18172,39676,32454,5259,45567,18185,18353,45262,17237,44689,4686,44851,19057,44867,45421,44869,18996,45229,10402,17114,18648,17092,45518,44531,44863,8753,3883,44745,18719,17848,4765,44875,17703,44762,9341,44711,44640,31354,44868,45346,44768,44764,44739)
Unknown column 'np.person' in 'where clause'