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 (18652,5993,18650,4686,14402,45262,4765,45042,30135,19057,17835,18794,44669,17601,17237,6609,13922,44861,44873,5259,45516,44685,44851,44531,45421,44894,17351,45567,17556,44868,19078,24441,44866,44674,37267,44767,45561,17771,17657,3883,18900,44739,45277,44848,18996,44865,44854,9341,44870,44765,28530,30963,44845,17904,44689,17009,44711,24438,44858,13425,5410,18353,18172,13988,18042,17756,17527,44640,10402,45346)
Unknown column 'np.person' in 'where clause'