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,44762,17771,6782,44861,17351,10402,44775,44855,18648,45180,6609,44869,3883,44766,44854,3,18652,44765,17848,44858,44849,18286,18185,44848,45262,17835,44865,24412,45346,30135,18650,43800,45516,44689,13,36472,16935,44767,44873,37057,18172,17756,45042,45051,44851,17657,18427,45177,18900,44894,18301,45517,44739,44745,18572,45072,17556,18894,8753,44837,18446,19057,44836,5259,44884,18430,44671,18042,45421)
Unknown column 'np.person' in 'where clause'