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 (45515,10402,17756,45051,44873,18894,44739,18446,18572,30986,17657,45567,18430,44640,24438,6862,4765,5993,44856,24441,44711,17755,30135,17771,19057,45277,44878,17114,18794,28530,30963,16885,5259,18900,17237,43800,17092,18981,44851,45180,44762,18172,16935,44858,9341,13425,34194,17981,44894,37267,44866,5410,44685,44875,44745,17601,44531,45286,18648,3883,45262,22509,45421,14402,18996,44669,18279,19078,17527,17335)
Unknown column 'np.person' in 'where clause'