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 (14622,44669,45286,17009,45042,44884,44745,44775,18981,44640,44851,5259,44848,17657,45277,17492,44687,8753,45180,24412,44867,18650,17904,17981,44739,13922,9341,18185,13425,17601,44766,30963,18900,44837,17835,45517,6782,18688,45516,44765,18794,44836,17237,44866,19057,18652,19078,10402,17335,44873,44894,45177,17092,17771,44863,18279,45561,44854,22509,44861,45072,6875,16935,44855,44875,45229,17351,44878,18996,30135)
Unknown column 'np.person' in 'where clause'