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 (44531,17771,18427,45043,45561,44869,44671,18301,18650,44640,17848,32454,17703,6609,3,17351,28530,44875,44689,8753,5259,18719,44856,24411,45042,5388,45286,18648,17092,18237,44873,14402,44669,18279,45051,4765,44848,17835,17335,44764,31354,24412,19057,24438,30135,44865,44674,36472,45346,44878,45277,44858,39676,44739,44870,18652,6875,5993,14622,45567,44853,44836,17492,37057,44745,16935,44868,17237,18900,45177)
Unknown column 'np.person' in 'where clause'