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 (44849,17335,18719,18185,44867,17848,45515,17839,44768,45051,18650,24412,45229,17556,44865,44853,34194,4686,44854,17835,30135,44531,16885,18446,28313,10402,45072,24441,45561,18981,19057,44884,44775,17904,45517,44861,18648,14622,44855,8753,13,44868,17981,44669,18427,5259,44836,44762,44845,44873,9341,44878,45567,44837,17703,24438,44869,44764,22509,18301,17092,44640,18237,44870,30986,18894,36472,18353,18172,44851)
Unknown column 'np.person' in 'where clause'