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 (44848,45042,44878,17756,6609,44854,45517,36472,30986,44739,17492,18301,5993,24412,5259,18900,44865,45277,39676,45421,22509,24411,18794,18719,18894,44894,44674,44689,6875,44766,44853,45072,24438,17556,44868,5410,44866,18981,17092,17278,17351,44767,17755,19057,18430,45515,30963,14402,44873,9341,44671,17703,45043,44845,30135,6782,44837,17904,45177,16935,45346,14622,45229,10402,44685,5388,44836,44884,45516,43800)
Unknown column 'np.person' in 'where clause'