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 (5410,18042,17657,43800,18237,18688,17556,45286,24412,44858,36472,16885,44687,44531,28313,18185,13988,45042,17904,45561,17835,44836,34194,4686,44861,6782,44762,18427,17092,30963,5993,44767,13922,45051,17755,45567,19057,18279,19078,17009,6875,18301,17703,45072,44873,45229,44739,44845,44865,17756,31354,44869,44837,44863,44689,14622,18894,18353,44867,3,44674,44848,18650,5388,44765,18794,44745,44766,44849,45517)
Unknown column 'np.person' in 'where clause'