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 (44868,18279,45567,44687,18650,18430,18172,44855,24412,45072,17278,44884,17237,8753,17771,17009,17092,18185,16885,44858,44764,18572,10402,17556,44762,6609,18688,13922,45561,17527,44848,5410,18894,18042,44765,17351,30135,18900,45177,24438,17848,45042,17904,45518,18981,17601,44640,5993,44845,13,44775,44869,44835,14622,43800,45043,3,17335,34194,13425,45517,45346,44739,3883,44861,18286,44853,4765,32454,44689)
Unknown column 'np.person' in 'where clause'