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 (13988,16885,43800,24411,18688,44873,18996,44674,17904,45561,16935,18894,44685,5259,18794,18237,44745,45262,45042,17601,5388,19078,44837,19057,17278,44868,5410,44851,13922,45567,6875,45177,44845,17848,44640,17771,45286,22509,44861,45346,45051,17237,17092,44867,44878,17351,17839,31354,45516,44855,17835,18650,44767,37057,14622,44762,28313,6609,44711,17114,44765,18172,44766,6782,44866,34194,44853,18353,30963,44870)
Unknown column 'np.person' in 'where clause'