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 (37267,28530,44671,13922,24441,17492,18719,44870,36472,44867,45277,45229,30135,5993,44848,17835,16935,30963,18446,44767,28313,45346,44869,44836,18353,6862,14622,37057,44894,45421,16885,44866,19078,17278,17009,44875,17981,45177,13,45042,17756,17114,18286,18996,9341,17657,13988,44762,17527,18430,44873,18279,44853,17771,5259,44854,45286,18185,44837,43800,44861,45262,18301,44640,44674,24412,17601,44685,44835,17237)
Unknown column 'np.person' in 'where clause'