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 (37057,18572,18172,18237,17657,44878,39676,45561,17848,44531,16885,30963,17981,18688,6782,18719,44865,44837,24411,45286,44856,45042,44669,31354,44767,43800,44849,44861,13,45516,17114,17771,44711,17278,17835,24441,34194,17601,28530,5410,9341,44685,45567,44640,44836,17492,18652,6875,13988,18042,44884,17755,44768,44762,45421,17335,22509,18353,18446,45517,45180,44854,18648,45177,44689,44764,3883,8753,44766,44853)
Unknown column 'np.person' in 'where clause'