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 (17848,44687,17351,13922,18894,31354,45229,44837,17278,18301,44863,17771,44762,28313,16885,18719,17657,18237,44765,17492,18900,3,44866,44849,30963,5259,44867,17237,18427,3883,24438,44766,19078,18279,44768,44531,18981,44669,18185,44671,22509,44854,8753,34194,18688,5410,28530,5388,24441,18172,13425,44836,44689,18572,36472,37057,44851,44870,37267,44875,44845,10402,14622,45277,44711,44674,45516,44745,43800,17114)
Unknown column 'np.person' in 'where clause'