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 (45177,24411,45229,45346,45042,37057,17009,18353,17092,13988,24441,17839,24412,13,13922,44870,30963,44845,5388,45517,44768,5410,17703,44745,44875,18286,34194,44849,6875,17351,45286,44837,16885,44689,45518,14622,45072,6782,45516,30986,18301,44765,18900,17601,17335,17556,18688,18894,17755,18996,44687,44866,44867,18650,44856,44685,31354,44873,18042,3883,37267,44835,44853,43800,44671,13425,17492,10402,17756,44858)
Unknown column 'np.person' in 'where clause'