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 (44866,18185,4686,18430,44837,18719,44685,18237,14402,44849,17835,17092,44531,44863,17492,18427,44894,31354,28313,17771,45286,5993,44669,44674,6862,9341,17755,44765,18301,18353,17237,24438,24411,44767,5259,44836,17527,44640,44689,45346,44856,45518,17009,43800,30963,45262,44739,17556,30986,45277,45561,37057,44854,17981,18446,16885,45515,44878,44853,44764,45072,5410,19057,13,6782,44861,18650,28530,44711,32454)
Unknown column 'np.person' in 'where clause'