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 (17237,18427,45262,44865,44858,17114,45043,13,18185,18279,17756,44873,13922,6782,44745,17527,18981,44845,18172,28313,28530,43800,24438,18286,18237,18301,45421,37267,17009,18688,45072,44851,44854,45517,31354,18650,24441,44878,18794,45180,44687,36472,45229,44848,18894,18996,13988,18719,18900,45567,44685,24412,24411,44866,13425,5410,14402,44768,44640,18353,17335,44875,6862,17556,18446,18572,37057,17835,18430,22509)
Unknown column 'np.person' in 'where clause'