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 (17351,28313,18650,17981,45043,44894,24412,5388,44640,45042,30986,44869,18688,24411,19057,17527,44687,24441,4686,8753,45518,31354,6862,5259,45346,44848,44865,18286,44868,45180,45051,44674,45517,44685,24438,44849,44835,18894,17848,44689,28530,44875,3883,44775,44878,45277,30963,17835,45286,18900,4765,44762,6782,13,18042,18353,22509,44870,18172,9341,17009,44739,13988,44531,18996,44745,17237,18301,44866,17601)
Unknown column 'np.person' in 'where clause'