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 (17848,45051,44894,24441,19057,6609,44861,44845,45421,10402,45567,44849,45517,44836,18572,18427,24411,18172,6875,17114,9341,4686,18688,45072,5993,18652,45042,17755,44531,44687,17492,44674,18237,44848,18286,44835,45515,44873,44711,6862,45561,17278,13922,45043,44775,17839,18279,45346,44866,44854,44853,17981,19078,45177,30963,18981,30135,34194,44868,45229,44837,18996,45277,44640,18353,44739,45516,18794,32454,17657)
Unknown column 'np.person' in 'where clause'