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 (28530,44837,44855,18286,19078,44768,45229,13988,30986,17703,18042,44851,6782,18185,37267,18279,45072,44685,44764,18301,18652,3,44875,44858,44669,18894,18900,18172,5993,17904,45277,17092,18719,44873,32454,17839,30135,31354,17657,14622,18446,44894,44869,44671,18430,44854,6609,28313,39676,44775,44884,17527,19057,18353,44674,24412,45262,45286,45515,17755,44863,13922,18794,3883,24441,45518,18650,18427,44848,18648)
Unknown column 'np.person' in 'where clause'