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 (44765,44766,3,18794,16935,45043,31354,18652,44855,44849,45421,44531,44775,44640,45561,18650,18301,45517,17904,17335,37057,16885,14622,19078,18237,44854,44836,18042,44671,28313,18981,44868,44837,44745,45515,44762,44867,44767,44685,24411,18719,44875,45286,24412,44884,18286,44863,44853,44674,44768,6862,18688,44866,44711,44845,44764,13,4686,30963,44869,45277,17492,44835,17755,13425,17351,45229,6875,44848,17703)
Unknown column 'np.person' in 'where clause'