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 (24411,45072,24412,18279,18794,5259,14622,19078,6609,17848,45421,17556,17114,37267,44858,18688,28530,17092,44739,44884,37057,18172,44873,18996,44875,44669,31354,44671,17009,45561,18652,17351,10402,13425,18353,44836,24438,45286,17755,17835,17601,45515,18648,18237,18427,44848,18301,45277,18430,19057,44835,44685,18572,44849,44865,45517,13922,18650,6782,45346,44766,17904,16885,44861,44674,17237,44845,45042,30135,45180)
Unknown column 'np.person' in 'where clause'