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 (44685,4686,17092,17835,45421,44853,45517,19078,44767,18996,17556,18427,30986,45180,17703,17492,18688,24441,17601,18430,6782,10402,39676,18042,44531,28313,28530,24438,45515,18286,44835,44674,3883,17848,44837,44855,5993,44868,18572,18719,45229,17981,44863,44836,17771,44689,18981,22509,18172,44765,18353,13988,24411,18894,44866,16885,17904,44768,44884,45072,18446,17335,44856,9341,36472,18279,5410,44854,44640,44849)
Unknown column 'np.person' in 'where clause'