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 (18185,44764,44853,44835,45229,16935,13922,17492,17703,17771,44851,14622,44866,13,17755,24441,17114,45421,30963,17756,32454,45515,44640,17835,44875,44767,45177,44711,18688,44685,17904,45561,18430,45286,18650,6609,17848,30986,45518,5410,45042,18427,17981,44878,31354,18042,18446,44766,19078,44848,3,18981,18286,17278,16885,36472,44855,45277,18237,18894,17237,24411,44849,18172,17839,43800,18652,44687,44765,44531)
Unknown column 'np.person' in 'where clause'