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 (44853,44836,44689,18427,44762,37057,44765,44837,44640,44851,24412,39676,44685,17492,18648,17114,44866,16935,18572,3,44711,17092,44849,13425,18719,45177,5388,45421,44865,17601,44878,13922,8753,44531,44869,28313,16885,45516,18900,17278,30135,17556,17848,17835,44848,24438,17657,44775,5993,37267,44863,44856,18688,44671,44766,45286,45229,17335,44745,45042,43800,17755,45346,18042,32454,30963,45051,45043,28530,44845)
Unknown column 'np.person' in 'where clause'