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 (44873,45516,44739,17601,44848,18286,45518,44836,44669,45262,44674,45277,45517,44870,17237,17848,17009,44863,4686,19057,24438,44689,14622,44866,22509,3883,5388,17092,44767,18353,44849,24412,44764,44765,28313,44868,17755,45177,24411,18650,43800,18427,17835,6875,13425,44531,44775,44867,44884,44854,28530,9341,45286,45561,44845,18172,19078,5993,34194,31354,37267,44745,45346,14402,30963,44640,30135,36472,37057,18430)
Unknown column 'np.person' in 'where clause'