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 (45262,44856,32454,6862,18172,17351,17092,30986,44767,45518,17492,17703,18185,44775,19057,17335,18042,44869,44863,18237,17601,18572,43800,3883,5993,16885,44845,8753,44687,44868,44884,17657,18279,45229,44854,18430,14622,13988,24441,18286,45567,18688,36472,18652,44835,39676,44711,4765,14402,18996,17527,45051,45516,18427,45286,44873,30963,44875,17114,28313,17278,17009,24438,45042,44765,18650,18894,44855,5259,44851)
Unknown column 'np.person' in 'where clause'