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 (44764,14402,19078,17981,44867,43800,17335,18430,6782,17556,17835,8753,44739,13988,18648,44765,16885,19057,6875,45517,45516,44875,17703,9341,24438,31354,18185,45346,45229,17601,45561,44868,17114,44854,5410,45518,45042,44848,44851,18688,17492,18446,44873,44835,44858,44894,22509,44863,14622,5993,18279,17278,18719,18172,45277,17351,44669,13922,6862,44837,45515,18237,4686,45286,44768,24411,17009,44878,17839,36472)
Unknown column 'np.person' in 'where clause'