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 (18894,44866,17601,45229,44873,44767,18042,44855,17756,44861,10402,45286,17771,44674,19057,43800,44768,37267,17835,44687,44851,3883,45180,13425,45567,45043,13,30963,44884,24411,30135,18794,45177,44531,4765,18572,17335,34194,14402,44848,44669,17657,44854,17492,44894,44875,44739,17527,18900,18427,39676,44867,44870,18719,6862,45561,44764,45516,44765,44671,44863,17009,17703,6609,5410,44762,44868,19078,44845,17114)
Unknown column 'np.person' in 'where clause'