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 (44775,44884,44671,44685,18185,44878,44739,17237,30135,22509,45518,44845,19078,30963,43800,45180,44837,44687,44866,18572,45229,44835,45346,10402,17771,44868,45567,5388,44873,3,18648,17114,18894,44861,13922,44640,13425,18172,28313,45277,44848,18446,18042,14622,6782,24412,44762,5410,44531,44867,36472,31354,17904,44689,45286,30986,17657,44894,24441,37267,18286,17092,17756,6875,16885,19057,5993,44875,45517,44767)
Unknown column 'np.person' in 'where clause'