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 (44765,44856,44764,5388,44865,18353,18185,18688,45346,28530,44869,34194,44845,17114,17237,18794,36472,4765,18981,17492,17848,45177,44671,16885,17703,30135,44848,44867,44853,13922,13988,45421,44863,24438,18572,30986,17351,45042,18172,17839,45561,44836,13,31354,14402,45262,44531,44640,45518,18279,43800,44861,45180,44875,4686,45277,17009,22509,44762,5259,44835,44873,24412,18648,18430,45515,45286,18996,44849,44854)
Unknown column 'np.person' in 'where clause'