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 (45517,44870,18572,45346,45286,45567,44845,28530,6862,18286,16935,18650,45180,6875,44687,45177,4765,43800,44671,45561,17904,17835,44873,44865,14402,44685,18996,44640,17839,30135,44878,44849,44894,3,44836,44868,37267,45051,31354,17237,13,24441,17703,17114,17092,45277,17601,44745,17009,44866,28313,9341,34194,44767,44765,44848,22509,14622,44739,18427,5410,17351,30963,44764,17492,18446,18185,37057,18648,44854)
Unknown column 'np.person' in 'where clause'