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 (18650,44689,37057,44531,44640,4765,44767,18427,5388,16935,18042,45346,18996,44768,43800,18353,18648,18794,44764,17351,17556,44685,45229,3,44853,3883,24441,44854,24438,44865,17278,6862,44884,17703,44836,13,22509,44866,44711,17114,44687,45043,45518,44775,44861,44845,18286,44766,45567,18279,19057,18446,18301,28313,19078,30986,18900,44875,18688,45421,5993,17904,13922,28530,14622,44855,44863,45180,17848,18430)
Unknown column 'np.person' in 'where clause'