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 (3,45515,45346,13,44767,18353,6609,45180,30135,44674,44849,45567,44766,17556,18279,44762,44884,44848,17848,17839,19057,10402,44853,5410,18794,44835,45561,45229,5388,44894,5259,24438,43800,17527,44869,18572,44866,13425,44640,44845,17492,18237,16935,36472,45042,14402,45277,17335,44861,17237,44685,44775,44531,17981,13988,18430,34194,45072,18650,17657,17278,44836,19078,17351,44745,44855,18446,37267,44689,44687)
Unknown column 'np.person' in 'where clause'