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 (19078,44739,4686,37057,44849,37267,13922,18719,44767,18042,6875,18353,18572,44764,9341,5259,44869,16935,45516,44854,45518,5388,45177,44865,44766,44853,18650,34194,44762,44855,17756,44531,24441,44711,19057,44687,44640,17601,45180,17009,44878,17492,44674,18996,18286,18652,44863,18172,18185,5993,44745,44845,44837,13988,30963,18900,24411,44768,45421,17904,18301,24412,45346,28313,18981,45042,44894,44836,39676,18648)
Unknown column 'np.person' in 'where clause'