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 (14622,17835,45517,18042,18237,45515,13425,32454,17009,44863,45262,18446,44766,5993,44767,45229,45516,18427,19078,3883,44669,44845,18301,45567,6862,17755,6782,24438,44869,17351,45277,44861,44775,44894,36472,10402,5388,44745,8753,19057,44854,44848,44875,18353,16885,44837,39676,44689,45518,45177,45561,28530,17771,44671,24412,4686,37057,44739,44849,44851,44870,44685,18650,31354,18652,34194,17904,18900,17492,13988)
Unknown column 'np.person' in 'where clause'