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 (3,44875,45277,44669,44861,17848,45177,44674,44853,44768,30986,24438,5259,3883,5410,17092,18648,17755,44837,44766,45517,44854,18430,16885,18237,18301,18996,44835,18286,45043,17278,44858,45229,17556,17601,45042,18894,44711,45515,17335,18279,18446,18652,44869,17492,37057,44767,44867,28313,18650,18353,44870,17771,45567,5388,44531,13988,18688,14622,24411,45286,5993,6782,44865,44671,45180,44894,6875,18719,24441)
Unknown column 'np.person' in 'where clause'