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 (44845,45229,18427,44711,17092,44869,44765,18794,45518,18237,45517,44837,18688,14402,45421,28530,44745,44873,44868,44768,44764,18648,44669,17237,44835,24412,44867,18894,45177,18719,17839,28313,17351,37057,3883,18652,43800,32454,44866,45346,4765,18279,44853,17703,18446,24441,44836,18172,44689,18650,13922,45262,8753,44671,44884,17556,3,44775,5259,17492,10402,45286,44870,44640,17657,17848,31354,44894,44739,6875)
Unknown column 'np.person' in 'where clause'