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 (3883,45567,45051,8753,44762,17009,24438,28313,45229,44739,44884,37267,18652,17527,39676,44849,18237,44685,17237,44835,9341,18719,17278,44894,44687,44867,6862,44848,18446,45346,17835,45177,19057,45515,43800,44689,44674,17848,19078,13922,44869,44875,45518,45517,6875,44858,5259,17771,17556,5388,44868,37057,32454,16885,44836,18042,14622,10402,44856,24411,3,44775,18572,44863,18900,44851,45561,44745,17904,44767)
Unknown column 'np.person' in 'where clause'