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 (44865,3883,39676,4686,44875,17848,14622,45346,24441,5259,44685,44867,30963,6862,45177,5993,45421,19057,45072,18719,45286,44884,45042,18237,44837,44764,14402,16935,44674,44894,44848,28313,17771,37267,43800,44765,45567,8753,44687,18894,16885,45180,44836,44869,13425,44853,18996,45517,18652,17657,44739,44856,18648,44870,6875,44851,18794,19078,18301,44835,5388,36472,37057,45561,17703,45262,45277,13,17009,44671)
Unknown column 'np.person' in 'where clause'