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 (44685,5410,17839,17771,18981,16935,18042,17756,18894,17278,44764,44863,9341,30135,5388,44674,45518,44853,44849,18900,45229,6782,13425,18572,17009,44640,24438,18185,16885,17092,13922,44861,17703,37057,6875,44775,14622,17848,43800,39676,17755,24441,18650,44671,4765,17657,44767,28313,44873,17237,30986,44855,44858,45515,17492,44869,44848,19057,4686,44894,44669,14402,36472,44762,17556,18648,45072,34194,8753,5259)
Unknown column 'np.person' in 'where clause'