Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44762,17527,14622,44856,4765,6862,39676,28313,17092,44685,18996,24441,45051,44869,44674,44767,18652,44849,3,17839,24438,24411,44766,44848,18353,45229,30986,45515,45567,18286,44531,17009,17114,13,18648,18237,6875,5410,6609,44870,18427,44739,13988,5993,44854,34194,36472,28530,8753,6782,16885,44837,17278,18430,44894,31354,32454,16935,17237,44669,4686,44867,44845,18301,45421,44855,30135,17981,18172,45286)
Unknown column 'np.person' in 'where clause'