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 (44531,45043,16885,5410,43800,45262,44867,13425,17839,17237,4765,6609,44687,36472,31354,19078,28530,44855,18172,17009,18279,9341,45567,44878,45180,44869,17278,30963,17601,44849,18042,17771,37267,44674,44640,44868,22509,45516,44861,44845,30986,44856,44835,44775,14622,45421,8753,13,39676,45277,37057,44853,18688,3,18286,34194,44671,24412,17848,13988,6862,17114,18301,6875,10402,19057,45051,30135,44689,18427)
Unknown column 'np.person' in 'where clause'