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 (18652,44671,28530,45229,17703,13988,10402,44767,30986,44853,37057,44768,44745,17092,5259,44765,44873,44854,8753,3883,6875,44835,45051,44865,13,45277,17839,44870,17335,18237,17237,24438,45518,17771,17009,44640,44878,45262,14402,44855,44762,18688,16885,39676,45180,18719,44848,44867,18572,44531,17904,17278,18996,44837,18353,17601,31354,44884,16935,45516,44869,44739,45177,32454,18446,44894,45517,44868,18042,17114)
Unknown column 'np.person' in 'where clause'