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 (44669,5410,44866,17009,17601,45517,4686,44884,44766,24411,6862,44845,17335,18427,44851,18446,44867,18794,18996,44873,3,43800,44531,17657,45567,44869,44837,18648,24412,8753,44768,44849,44762,44853,24441,44764,44894,44689,17839,17492,18894,44870,14402,44878,17703,4765,45346,24438,44855,18719,44835,32454,17278,18286,28313,45286,18981,45051,45518,6609,44687,9341,45043,17771,44640,36472,19078,18301,45515,10402)
Unknown column 'np.person' in 'where clause'