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 (44711,18650,24441,37267,3883,28313,18652,24412,18996,18794,30963,44856,44845,45277,17527,17703,44848,44894,19057,28530,19078,45072,18894,44766,17848,44762,44739,17771,44689,44671,44865,5388,17755,32454,18237,18301,44853,18900,18042,17556,17904,17835,22509,44863,34194,45567,17351,44768,44765,44640,45346,45516,45517,31354,4765,45286,18286,44836,16935,17278,30135,44837,24438,44867,44835,45518,44764,44745,44685,17335)
Unknown column 'np.person' in 'where clause'