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 (44767,19057,9341,17492,44870,44866,6609,44853,24411,45262,18894,14402,3,44689,44835,17335,44848,17009,13922,17092,18301,44854,14622,24438,18900,44873,5410,24441,45567,44861,44865,43800,32454,44762,45516,28530,13425,45177,5259,19078,44836,45515,18794,6862,18652,17556,18279,10402,18688,44640,44775,45517,18981,4765,44851,44765,45229,45561,44739,45042,44858,45277,36472,24412,45051,45518,18427,30135,44894,18042)
Unknown column 'np.person' in 'where clause'