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 (18427,44863,18981,39676,45515,44873,44775,17981,17904,4686,44640,45277,44861,37057,44854,9341,18572,19057,18237,44849,44869,45043,44767,13425,44878,13922,16935,6609,24441,30986,44851,44768,44855,34194,44866,17835,6782,45072,44894,44687,44848,44689,5388,14622,3883,24412,44765,18172,45346,24438,30963,5993,45517,44837,44845,17492,13,13988,44875,18430,45518,44836,10402,18279,18446,18185,44745,44739,18648,18301)
Unknown column 'np.person' in 'where clause'