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 (36472,44766,37057,18688,5388,44853,28530,18572,24441,44849,44845,17904,44711,17657,45346,44866,17092,18301,44768,17556,13922,17703,45286,44685,44531,30986,45567,44669,18279,44873,44687,6609,44836,17237,45229,18894,30963,45262,14622,13,45515,44875,5410,17839,44854,19078,44894,44884,18237,9341,44869,6862,18981,18652,44739,16885,32454,31354,13425,14402,44867,17527,5993,5259,17114,18794,16935,18719,37267,18430)
Unknown column 'np.person' in 'where clause'