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,45517,24441,45180,44851,44873,45561,44849,44894,18894,44868,44856,6862,45277,45072,17835,3,44875,17009,44845,19057,18688,17771,5259,6782,44745,8753,44685,6875,14402,17839,45518,45262,45229,30135,44870,45516,19078,45346,28530,44739,18427,44767,4686,17092,17756,44858,17703,18237,18996,13988,44669,39676,44764,45421,24438,17556,45286,17492,24412,17114,18279,45567,5388,44848,44766,44869,43800,34194,14622)
Unknown column 'np.person' in 'where clause'