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 (18172,44875,18900,22509,18650,24441,17114,18446,44858,17556,44868,4686,45421,44853,43800,44739,16885,44849,44762,3883,34194,9341,44768,18301,17756,4765,44775,17601,17009,19057,3,17981,44870,13988,6862,30135,37267,18688,17335,18042,18794,44861,19078,18652,5993,45277,6875,17904,45262,44687,44856,36472,45229,18279,13425,28530,28313,44848,44837,13922,6782,17839,17278,14622,44863,10402,8753,44865,30963,14402)
Unknown column 'np.person' in 'where clause'