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 (44711,18996,18981,45180,44853,45286,5410,6609,44873,22509,44685,24438,13922,37267,8753,17601,44739,44855,17278,24412,44851,9341,44848,34194,44868,17556,18353,30963,4765,4686,44837,44531,17092,44861,45229,31354,44689,17756,44674,10402,18430,18652,44640,44671,44856,44767,18172,45518,6875,5259,44867,3883,44766,45515,17657,44835,17703,18301,45042,17835,18279,18286,16885,14402,17981,13988,44866,28313,44878,43800)
Unknown column 'np.person' in 'where clause'