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 (17492,17335,17527,17904,45277,44868,13922,44856,44861,18650,5410,44674,28313,17278,31354,18981,45043,44767,44836,44865,17755,44531,44687,44849,17009,18652,37057,44765,45262,44855,18894,8753,19057,44878,17237,24412,19078,36472,18237,44851,44863,44745,24411,44671,17848,45286,30986,44837,18353,18996,17981,13425,45421,37267,44768,5388,44848,28530,18172,39676,44764,14622,44873,17092,16935,17771,44640,10402,44689,18648)
Unknown column 'np.person' in 'where clause'