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 (18279,19057,18353,16935,44768,28313,6862,17657,32454,34194,14402,3,44765,18648,13,45043,18900,18794,44869,18688,44868,17756,30135,13988,17601,45517,45515,45567,44671,18042,17848,30986,44739,44766,9341,18172,44640,4765,44855,44854,45180,18650,17335,17835,14622,22509,17351,44762,13922,45177,18981,17904,44861,45561,45516,45051,17981,44775,18894,44689,44764,44835,44858,44865,6875,10402,24438,28530,18430,37057)
Unknown column 'np.person' in 'where clause'