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 (18237,3,44848,28313,45262,18279,44674,16885,44671,13988,18900,44775,44687,24411,45421,44867,13425,39676,17703,5388,18427,44875,17335,44853,44835,17009,18794,17981,17657,6875,44878,44894,44836,45042,44863,18185,17756,18996,45516,3883,44766,18286,9341,45518,17556,45277,28530,5410,18301,31354,18981,18042,44767,44640,14402,44669,18353,17527,45051,16935,18572,17771,44851,18894,44865,14622,44849,45517,44764,8753)
Unknown column 'np.person' in 'where clause'