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,45277,13,45042,17703,44674,24441,3,44762,18794,44531,44775,44870,24412,3883,17835,44687,13425,8753,6609,28313,18688,44671,18996,10402,44884,16885,44640,24411,44861,17771,17527,17556,18172,18981,6782,44711,30135,18185,4686,37267,17755,44849,44855,17092,13922,17335,17601,44845,30986,44836,5410,44853,45517,17904,18650,17848,17657,18652,17009,45286,30963,5993,44865,44869,44873,18719,4765,45421,45516)
Unknown column 'np.person' in 'where clause'