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 (18237,44711,17755,5259,18427,17278,24412,16885,45346,17601,30135,28530,17657,44640,6875,37267,18719,44835,44768,45177,44878,28313,44884,44855,44869,44858,18279,44775,45515,44766,44845,31354,44531,44866,34194,18894,45277,44848,45229,44865,18648,18301,6782,4686,44861,17527,18688,17771,44849,18446,19057,24441,5388,44836,17492,5993,18650,44767,18652,44685,17237,45262,44867,44853,13,43800,9341,44687,44764,17981)
Unknown column 'np.person' in 'where clause'