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 (44687,44689,44531,18996,45346,17848,45515,45567,18794,44856,17556,31354,44775,17278,18719,24411,37057,44671,44855,17657,44767,44869,44873,44669,45286,18427,6862,17756,4765,44870,30135,17114,44711,45518,44739,45072,4686,16935,44762,44854,44858,44836,13425,45561,45517,18286,18185,17092,45180,18042,44865,18900,45421,19078,18652,44765,44640,44884,17335,30986,43800,19057,44685,44867,13922,14402,32454,17601,44849,44837)
Unknown column 'np.person' in 'where clause'