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 (44765,45042,18981,13425,44853,44854,44764,18042,44855,44856,44674,44868,18279,45517,4686,17556,16885,24441,45262,32454,17755,45072,44848,30963,44863,45043,18301,6609,22509,45277,44689,18430,17756,44671,45515,44531,8753,44865,5259,17237,5388,44884,44866,17835,44894,17601,44837,17527,18996,17092,13,28313,10402,18185,17839,18446,44767,18894,28530,6875,44775,24438,18652,45561,18353,44878,45567,17703,17335,5993)
Unknown column 'np.person' in 'where clause'