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 (44762,44855,45262,44861,10402,5388,17237,44766,45042,44854,18353,44870,32454,17756,30963,13425,44765,17981,9341,44745,17771,45561,37057,28313,30135,24412,18172,17527,44866,19057,17755,44687,6862,44863,45567,5410,44867,24411,45043,44835,18430,13,36472,45286,45517,17335,44685,17092,44671,6875,18794,44836,44775,17492,45277,30986,24441,45516,5993,18185,18279,44837,44869,44674,6609,17556,44767,18981,18996,44878)
Unknown column 'np.person' in 'where clause'