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 (44745,44868,18652,17114,18353,44873,44851,44865,17278,44674,17335,30986,22509,16885,24441,18430,44867,3,24438,18572,18719,10402,14402,31354,44863,45286,5388,17755,17009,5993,44685,17556,45518,44866,44767,44671,44875,44687,45346,44766,18286,44689,44768,45042,44870,44762,44861,18900,18650,18894,17703,45567,45072,44775,8753,17839,17527,19057,45043,44858,30963,24411,6875,44640,6609,18185,36472,17848,17237,18794)
Unknown column 'np.person' in 'where clause'