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 (44856,16935,30135,45516,6782,44873,17755,17351,44858,30963,39676,45567,44867,45561,18719,44837,17092,14622,44669,45517,44875,44861,44671,44848,44878,17848,18894,44775,18427,17492,28530,43800,24411,44762,13425,37057,45043,18648,17771,44531,16885,44894,44685,44640,18572,17657,18652,44767,17981,45262,4686,18279,5993,18353,44849,18996,17756,17278,19078,18446,45229,18286,45421,18301,17835,6875,13988,45180,18172,45177)
Unknown column 'np.person' in 'where clause'