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 (17601,44867,6875,17657,36472,17527,17756,10402,17114,18286,44687,44767,39676,45177,13922,44768,44875,45516,44873,44878,44685,30963,17904,44837,18652,13,43800,18042,18650,5993,16885,45421,24411,45042,44674,44848,3883,44836,18572,14622,44765,18719,45180,16935,17848,45346,18185,13425,31354,45262,45567,44856,44861,44855,44739,44689,17839,24441,9341,17237,30135,17278,4765,44669,45561,18894,45515,44775,37057,28530)
Unknown column 'np.person' in 'where clause'