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 (45421,18042,3,44884,17771,37267,44836,44867,3883,45516,17904,44855,45042,43800,18652,44687,6782,5410,44870,44762,44640,44848,22509,17981,44853,24412,17703,17278,5259,18794,45346,5993,45277,45515,6609,44849,5388,17009,18430,18172,18981,17527,44894,44766,6862,44851,45561,44671,44835,16935,14622,44531,44674,30986,6875,9341,17755,18427,18996,39676,4765,18237,18185,34194,44863,17335,30963,44866,18650,31354)
Unknown column 'np.person' in 'where clause'