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 (44739,34194,30135,43800,45516,30963,18894,44878,18042,28313,44836,44855,44674,45229,44867,8753,3883,17835,5388,45277,45051,17527,37057,44853,44870,6782,30986,17335,17556,45072,13922,17009,13,17904,18353,18430,17601,44858,6862,10402,16885,17848,18301,44845,44689,45042,17771,18648,45421,14622,45180,17278,6609,39676,5259,44766,45177,45515,18719,18446,45517,44768,17839,17703,18286,4686,18688,44863,44685,45286)
Unknown column 'np.person' in 'where clause'