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 (44894,18894,17771,44868,17839,44858,8753,17278,24438,17756,44671,44854,17335,3,45229,44739,44861,44836,19078,44884,22509,6782,17092,6875,17601,17527,18042,44640,45051,45518,31354,16935,18900,34194,17755,13,5993,28530,9341,5388,17351,13922,45177,32454,45561,5410,44865,17556,18237,44866,44875,37267,44685,4765,44689,44848,44851,45043,17492,30135,4686,45262,18446,45516,17848,17981,44867,16885,13425,44745)
Unknown column 'np.person' in 'where clause'