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 (37057,44878,44858,17092,18286,17601,5410,18650,44674,44855,44768,19078,17527,17904,44870,45286,44745,18279,17556,6862,36472,32454,44853,5259,18427,45515,45561,14622,44835,45518,44875,18430,39676,44894,30963,17114,5993,45421,18894,10402,44884,45180,8753,6875,18237,44869,17278,44765,17657,45262,45177,45229,5388,45043,45516,45567,28313,17835,19057,44836,17756,44640,30135,13922,18446,24438,18301,28530,37267,17335)
Unknown column 'np.person' in 'where clause'