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 (44851,32454,30135,18794,24441,44711,4686,8753,17904,17848,17981,5410,18172,17335,45516,31354,18648,16935,18688,18446,18652,18719,30963,44869,44745,18286,44875,18237,45072,45042,39676,45561,6609,44767,44768,18650,44855,24412,44775,44764,18894,17839,44870,19057,45043,44854,44687,45286,44849,18427,17835,18353,44867,44739,18185,9341,17092,17351,18430,44837,3883,18572,18996,3,44853,24438,28313,34194,17278,17556)
Unknown column 'np.person' in 'where clause'