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 (17839,44855,44854,45515,18648,18279,18996,43800,44531,19057,3,18353,44870,32454,18172,45517,18237,5410,24438,44848,18652,17092,44739,45421,17904,45262,17657,45346,17278,16885,44685,17771,44868,44836,31354,28313,6862,44875,44873,37057,30986,45180,44869,44765,44867,18894,44762,9341,45072,44687,17848,18572,13988,44671,17755,5993,18650,18286,44837,18719,3883,30963,18430,44878,18185,34194,24411,44861,17335,22509)
Unknown column 'np.person' in 'where clause'