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 (5410,44689,22509,5388,45180,44884,45515,18652,44853,44531,8753,24441,5259,17771,44870,17848,18648,28530,34194,13,18794,17335,45229,44765,36472,14622,44873,45517,45561,18981,44674,17657,5993,30135,44837,18042,18430,17351,3,44863,45177,3883,45516,18353,44849,44671,6875,43800,24411,10402,44775,17092,44745,17835,45262,13922,17556,45421,44764,44868,17009,18900,18446,44867,17755,44687,44685,44894,44858,44851)
Unknown column 'np.person' in 'where clause'