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 (18301,18652,45262,18286,17009,4686,19057,18719,13988,44765,19078,17835,17278,44845,30135,18446,3883,44689,18427,43800,17092,44836,44851,44671,44745,17848,31354,44848,17904,36472,30986,44764,45346,44767,44853,44873,45518,34194,6862,5388,24438,44858,45042,45072,6609,45229,17114,18279,44878,17657,6875,44685,17351,44837,44739,18894,18572,45180,45286,17839,5259,32454,17556,44669,13425,44855,37057,18353,17237,16935)
Unknown column 'np.person' in 'where clause'