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 (18996,45180,45286,44711,8753,44865,43800,19057,18794,44745,44854,14622,45072,17092,24438,45515,18430,44689,28313,45229,44868,45516,44685,45262,18301,44870,44674,17839,17527,44884,44739,44845,22509,39676,17755,3883,18185,17771,44836,44856,44863,24441,18572,13425,5388,44669,45421,44867,36472,18688,18894,45561,19078,45517,9341,13922,45277,18981,18279,4765,5993,17114,17278,16935,44764,17492,17657,17335,32454,34194)
Unknown column 'np.person' in 'where clause'