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 (17527,44745,18688,17601,18427,32454,9341,45072,4765,44873,44671,19057,18794,13922,18648,6609,44875,24412,44869,4686,17771,44640,44848,44766,44894,17492,17835,45561,6862,18900,18446,13,18981,30135,44767,44865,17904,44835,45051,36472,45346,44863,45517,28313,18279,44870,45567,18650,18996,44853,17981,45277,44531,18353,30986,5993,34194,18894,17755,45042,24438,44884,17092,44674,16935,10402,44685,16885,17756,17351)
Unknown column 'np.person' in 'where clause'