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 (44640,44669,44873,6609,45286,13425,45346,44865,44711,18172,24412,17601,18794,32454,6875,17278,45515,8753,17756,18427,44894,44739,18996,18430,44878,19078,18185,44855,13988,44868,24411,18719,44745,17839,5259,44674,44854,44671,37057,17771,44863,44875,17848,14622,43800,24438,18688,14402,17527,44767,44762,45277,44870,45518,44845,44853,18237,44836,45072,44858,34194,44689,28530,44861,45180,44866,44768,16885,18353,31354)
Unknown column 'np.person' in 'where clause'