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 (18279,17237,45346,17771,5993,30963,8753,45043,44689,44640,18719,30986,17114,13425,17755,44711,44745,44837,9341,18185,17904,45262,6875,18794,17981,24441,44863,44858,45072,18652,18572,16935,17009,6609,30135,19057,44531,44848,45515,44768,17601,24412,44868,3883,44873,18650,39676,45561,18353,5259,44669,44687,18172,17492,45516,44865,28530,18301,17756,18996,24438,44765,44853,17657,13,17848,44775,45229,19078,45180)
Unknown column 'np.person' in 'where clause'