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 (44836,4686,45561,44711,3,44762,16935,44848,28313,18042,6609,45517,44766,18996,36472,19057,18286,44863,44674,17835,44849,17755,17009,45051,45515,6862,18719,44837,30986,44869,44687,14622,18688,18650,44765,44865,44855,17839,17771,24441,43800,16885,18430,44745,14402,30135,44870,17278,18794,8753,13922,34194,4765,18572,17601,18237,24412,9341,44866,18427,45042,13425,19078,17848,18185,31354,44861,44669,18446,37057)
Unknown column 'np.person' in 'where clause'