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 (44765,14402,18996,44671,44856,45042,44531,17981,44837,18042,6875,17703,44858,18572,3,45229,18301,28313,45561,8753,5388,18900,17904,30963,45516,32454,44848,17335,44861,44869,17848,44764,45421,17492,44836,45262,17771,18279,6782,44878,18172,44855,44640,45072,5259,44868,9341,44745,17601,44775,24441,44689,44762,17351,37057,44674,17657,44894,45277,6862,44845,44865,44766,18430,44685,44768,22509,30135,18688,16885)
Unknown column 'np.person' in 'where clause'