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 (44640,44766,45262,45042,24411,5993,18279,44849,18794,44853,30135,44837,44845,44868,17092,44767,44855,44856,18286,44687,44689,6782,44865,18427,44851,44875,45051,18301,45421,44835,37057,17771,44768,18237,28530,44669,13988,13425,18042,10402,14622,17601,24412,16935,19057,45177,17848,19078,17492,18185,18650,17114,44869,45229,37267,17755,44870,36472,44775,18688,6609,18446,24438,18900,44531,5410,17657,44739,30986,17981)
Unknown column 'np.person' in 'where clause'