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 (44685,18301,18572,18286,45277,45072,5259,30986,16935,44873,6609,45262,8753,17237,44875,28530,17835,17771,17556,44894,18430,17756,44711,24411,6862,18794,18652,17009,4686,17839,37057,44768,45516,17492,44884,17114,13425,6875,45229,17278,44835,17848,13988,34194,28313,44868,44775,18353,45421,45180,6782,18172,45567,44853,10402,3883,18237,43800,18648,44865,44837,44766,44861,45515,32454,17904,17703,18996,5388,17755)
Unknown column 'np.person' in 'where clause'