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 (6875,16935,44873,37057,45518,37267,45262,6862,45043,44689,24412,45517,24441,45229,45346,18301,5993,39676,18286,44767,44768,17527,44685,9341,44745,44849,44868,17492,44855,44845,45180,18172,13988,17601,19057,17351,4765,8753,14402,13425,45177,18900,17703,44856,43800,44858,18446,44775,44531,14622,18981,17981,10402,18353,17771,44863,17237,3,24411,44674,28530,3883,45516,4686,17278,18794,45567,44640,31354,44851)
Unknown column 'np.person' in 'where clause'