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 (45180,44531,45262,44855,44745,18430,45516,24412,44836,18996,17756,17278,44739,28313,18446,44866,6875,17009,44764,45346,5388,43800,44640,24441,18286,24438,22509,37267,13988,18794,44765,18353,17556,45043,16935,14622,45072,4686,18301,30135,6782,44848,45518,4765,44865,5410,17492,44674,24411,44835,45042,8753,14402,3,18894,36472,17703,45229,45277,44711,10402,39676,18572,18427,45561,44861,17771,18648,18237,44669)
Unknown column 'np.person' in 'where clause'