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 (44835,13425,44531,18237,44858,18894,44873,18185,17092,13988,45277,24441,44878,17492,17756,44868,18172,16885,6862,9341,28313,5993,37267,44674,5259,45177,45180,18719,44671,8753,32454,18430,3,13922,17657,44867,44875,17771,30963,44711,19057,44894,44767,45515,45072,18688,44884,10402,44854,17755,18301,44766,30986,17703,44739,45421,24438,44845,45346,6609,18286,18650,17351,43800,30135,24412,18042,45567,17848,44685)
Unknown column 'np.person' in 'where clause'