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 (17839,22509,24441,17981,17527,17771,44674,17092,44873,44762,18042,31354,34194,45515,13,18996,44689,6862,4686,44766,45561,18650,44640,14622,44671,44858,18301,45516,44837,6609,18353,13425,17351,44768,44855,9341,45286,5993,17657,18894,5388,44849,44861,44767,6782,45051,44835,6875,45277,45518,18652,17237,17703,44669,32454,24411,44687,17278,18719,17009,24412,44853,44875,18427,17755,44867,43800,45177,44836,17492)
Unknown column 'np.person' in 'where clause'