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 (18572,17601,5388,3883,6609,44745,18427,18172,18286,44868,44766,45177,4686,45421,44845,14402,19078,18237,44711,44861,24438,18719,14622,45286,28530,45277,17556,9341,19057,44685,17237,30135,44671,17981,43800,44867,45072,17771,44762,17335,18650,8753,44873,44764,17848,44858,17756,4765,17009,32454,3,17492,18688,44884,17278,17092,31354,44687,13425,44855,44866,45516,45561,17657,17351,18981,37267,18900,44875,44870)
Unknown column 'np.person' in 'where clause'