Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44640,17527,17839,17114,28313,44861,5993,44669,19057,14622,17703,17657,44768,44854,45421,3,45043,22509,18353,6609,17771,24411,19078,37057,18042,44836,18688,18996,13,45042,13922,9341,45180,44875,44835,45072,18237,44766,32454,17009,45561,44689,44775,17848,6862,18572,44858,44856,18719,45262,6782,44745,44687,17755,30986,17351,4686,14402,17335,30135,43800,17492,44869,44848,17556,44767,44870,18301,44845,5259)
Unknown column 'np.person' in 'where clause'