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 (44765,45051,31354,18286,17278,3883,44870,44866,44745,14402,30986,44856,34194,45277,6862,44845,44767,24411,19057,44894,18719,44878,17657,22509,18185,44768,17981,45517,44687,32454,45042,6609,18650,44835,28530,44868,5388,17904,44685,44674,13,44689,17527,44858,44869,17092,44865,45229,45346,13922,17703,13425,44854,3,17335,30963,44855,18688,18237,44837,44640,44884,17601,44762,44764,44671,44775,18572,18042,44531)
Unknown column 'np.person' in 'where clause'