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 (44851,6609,44764,37057,45177,44775,44849,17835,37267,18185,6875,44856,5388,44858,30963,44848,45518,45072,32454,17771,18688,44739,18981,44669,44836,18430,45262,18301,44531,45229,13425,44640,45421,18427,5410,5993,17755,10402,17492,17981,18572,17009,39676,18719,45567,18446,45042,44671,24412,44854,17657,30135,44745,24438,6862,44878,43800,18652,44685,16885,45517,44866,13922,19078,18996,3883,18894,44762,44835,44767)
Unknown column 'np.person' in 'where clause'