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 (37057,19057,24441,17492,45042,28530,37267,18652,44858,6875,8753,44765,45346,44687,6609,4686,17335,5388,30963,30986,45180,17771,44845,44849,17237,14622,17601,44531,18427,45561,13,44856,17009,44674,16935,45277,18900,24411,44873,16885,44767,28313,44868,18650,14402,18572,45517,6862,32454,17114,9341,44768,18172,44745,44848,4765,17092,24412,13922,44866,44689,18042,31354,18996,44861,36472,44775,34194,18894,30135)
Unknown column 'np.person' in 'where clause'