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 (5993,17092,36472,17771,6862,17756,18286,44858,6782,44739,18894,18172,18900,24412,22509,18648,44674,17601,18185,18719,32454,44767,6609,9341,18446,44768,44851,45518,44835,45180,17835,4686,45561,45421,39676,17351,13988,24411,17335,44766,44854,44640,34194,18981,44845,44869,17009,17981,44848,17278,44878,18301,30963,45516,45043,28313,44894,44868,13425,45229,13922,44531,18794,45177,17556,17114,44849,44884,17755,17492)
Unknown column 'np.person' in 'where clause'