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 (44764,44837,17351,44848,17601,17755,24441,45516,45515,17657,17556,45277,17848,30135,44851,30963,44865,18427,17114,45177,45229,44765,5410,17278,44870,17839,44858,44767,44835,31354,4765,44836,18042,5993,44768,45561,18237,13,18894,44674,10402,44689,45042,45421,5388,18172,44739,45286,3883,18996,18430,16935,44868,45180,18301,24438,18652,9341,34194,44685,18286,4686,3,45518,17981,8753,45051,44845,18446,45567)
Unknown column 'np.person' in 'where clause'