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 (19057,18446,44875,44768,45561,44861,17601,45518,44689,18430,44863,45042,45421,44767,44867,13988,5259,17771,44868,45051,45286,19078,24412,24411,45043,18900,18301,45180,44849,44870,44669,18353,17703,44531,17114,3883,10402,17556,18427,3,44775,17527,24438,44640,44865,17848,4765,44853,37057,17237,28530,44869,44837,44687,44671,43800,44851,9341,30135,44884,16935,44764,44848,45346,45262,44762,24441,28313,45567,17009)
Unknown column 'np.person' in 'where clause'