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 (44863,44768,17657,37057,18719,17278,17351,45229,17009,39676,43800,44767,17527,44674,18648,16885,6862,44739,17492,17904,44764,44867,45177,30986,18996,44870,44853,44685,36472,44884,44868,34194,18301,17556,18237,4686,18794,45567,45517,44849,16935,14622,44837,5410,44640,18446,44873,17755,44711,17981,9341,18286,44856,45561,44775,19078,44875,45042,18572,17771,44851,44687,44765,44878,44689,17839,6875,4765,44848,45515)
Unknown column 'np.person' in 'where clause'