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 (44845,45518,4765,45229,17601,44858,36472,17756,44671,18042,18981,44640,44855,6862,24438,30135,45051,19057,44685,45042,8753,17848,17771,44775,17092,44531,44739,45286,17492,44687,14622,17527,44861,44878,34194,44851,44873,13,45346,44765,45567,6609,17351,45277,18172,44762,44854,9341,5259,28313,3883,18446,18572,17114,44866,44745,24441,45561,17237,45421,17981,5388,6875,44689,16935,17278,17556,45180,17657,24412)
Unknown column 'np.person' in 'where clause'