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 (44669,45561,44687,3883,45286,17756,18981,4686,17278,44858,17527,6875,43800,30963,44865,37267,45262,16935,45346,45072,18719,44868,17009,18650,44869,39676,44867,14622,31354,44894,13922,44875,18894,17492,45277,17981,45051,4765,18237,17092,44851,17237,45042,44762,5410,18688,44640,18286,44863,18446,34194,30135,5993,44873,28530,18042,10402,44836,6609,17771,17835,45567,44767,17703,45515,44531,44884,13,44861,44856)
Unknown column 'np.person' in 'where clause'