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 (44878,44869,18900,17492,13988,44739,44767,18446,3883,44762,44851,44894,45177,44837,44765,45516,36472,44836,44848,45286,45042,17556,17756,45518,44870,30135,18981,6875,44745,17092,45421,45515,45180,45072,31354,44687,43800,44685,18794,17848,18237,30986,44845,45277,18894,28313,18427,44531,19078,34194,44689,28530,18353,44867,44884,8753,44640,17839,44775,44835,17601,24411,45346,17351,44768,17237,17657,3,4765,45262)
Unknown column 'np.person' in 'where clause'