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 (17278,14622,37267,6782,45561,44854,6862,44674,45567,17335,45515,18042,3,18900,44853,45051,39676,44873,45229,6609,18430,44768,22509,44767,18688,44711,44849,45180,44687,44764,30135,44762,44837,17904,45277,18572,18279,44640,45042,24411,44848,18301,18286,17114,4765,16885,44669,24438,13425,44835,16935,44739,17703,44766,17771,17755,32454,19078,44765,3883,44836,17839,5388,13922,17556,28530,10402,13988,18650,9341)
Unknown column 'np.person' in 'where clause'