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 (45567,44894,44848,44853,17335,45515,44739,44685,17835,45346,44856,44711,37057,44849,6782,13922,18650,32454,3,44768,18900,5993,45229,44854,6862,28530,17703,28313,45072,18794,24441,18688,18279,17556,39676,31354,9341,18430,45518,17114,22509,17839,44878,44837,44640,19057,45277,44851,44845,44687,13425,44884,18301,17981,10402,45286,44870,3883,44861,45421,17237,44875,18427,18446,16885,18648,16935,34194,24411,44689)
Unknown column 'np.person' in 'where clause'