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 (44640,44870,45229,44775,44768,17601,44835,16885,8753,17771,44858,44739,6875,44875,45516,17657,45515,17492,14622,45561,44855,18652,45518,44767,45421,30986,44837,44671,18185,32454,44863,18794,18286,45042,5410,18446,45177,44766,6862,44861,45277,6609,44865,24441,18172,17237,17756,45072,24412,34194,37057,44878,44765,17904,45346,37267,44836,17009,16935,18900,44851,44845,44854,4686,9341,18427,24438,18279,44689,18648)
Unknown column 'np.person' in 'where clause'