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 (22509,18301,44687,4765,44856,13988,28313,6782,5259,45515,18688,18652,17703,5388,44868,17981,18981,17009,17839,18185,44848,17835,4686,18279,5993,6875,44531,44685,10402,44855,44870,17092,17278,44689,24411,45517,44851,17335,30963,18237,13,44858,44765,44854,44767,17114,30135,44878,18042,19057,28530,8753,45072,44762,36472,3,14402,24412,44863,24441,45286,44861,44766,37267,45346,14622,44853,44739,17556,45561)
Unknown column 'np.person' in 'where clause'