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 (28530,44765,17657,18981,13988,44878,44875,18650,13,17981,24412,5259,45561,44848,30135,45042,22509,24438,44745,18794,45229,18301,18572,45043,39676,17771,44766,44669,44671,14622,18719,3,44835,45177,6782,6609,45567,44863,17755,6862,44853,44767,18353,17839,17237,18446,44894,10402,17092,18427,44762,44849,6875,17756,45072,44674,18894,44868,44711,17848,45051,44531,17351,30963,44687,44865,44739,18185,17601,36472)
Unknown column 'np.person' in 'where clause'