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 (44745,14402,44856,44674,9341,18042,44669,44739,24438,44863,18572,17335,44767,17904,39676,17703,18279,28313,28530,44858,5388,37057,44531,44873,45286,44854,45072,5410,44687,18648,44866,17009,13425,44894,18900,44861,18172,24412,22509,45180,14622,6875,45051,45229,17527,45042,24411,5993,17492,45518,45561,17556,17278,17092,3883,44836,24441,17835,45346,18301,44848,43800,13,18237,30963,44878,44835,18430,19078,44837)
Unknown column 'np.person' in 'where clause'