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 (17237,44835,4686,17092,5993,43800,17755,18688,17556,44766,16935,18353,44878,17771,18042,31354,44848,6862,10402,18900,8753,19057,17009,44861,6609,45567,45042,44711,19078,45262,18446,18652,3883,5410,44858,45515,44849,30963,44764,3,13988,18286,24441,16885,17114,45072,44775,44739,17335,17703,17492,14402,18894,44856,44765,18719,18301,24411,30986,39676,44875,45517,44685,45421,17657,17839,13922,45051,13,44868)
Unknown column 'np.person' in 'where clause'