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 (44767,44845,37057,44739,14622,18301,18900,18353,17278,9341,17601,44766,44884,17237,4686,44768,5993,24438,45051,5259,17492,44848,17703,18427,30963,17835,36472,39676,17839,3883,45072,17009,45286,44762,18652,28313,44867,44856,44866,44863,45229,17848,45262,44531,45516,44858,13,17092,10402,17981,24441,18237,44689,30986,18894,34194,13922,44640,44873,18185,44861,18286,18572,18172,3,30135,44868,17657,44854,17351)
Unknown column 'np.person' in 'where clause'