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 (44739,44531,16885,44867,18650,45072,18301,3,44766,9341,6609,44835,17278,18894,39676,18719,45516,17335,24438,44855,17601,44873,44689,24412,17839,45567,44765,37057,5388,18286,44856,18353,28530,17657,18279,14402,44868,44845,45043,44858,44869,45561,44861,6862,44767,30963,31354,17092,18237,18794,6782,44853,18430,44762,17114,44837,17755,17848,45042,5259,44671,45286,37267,44894,44865,14622,18042,17527,17756,28313)
Unknown column 'np.person' in 'where clause'