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 (18996,28313,14622,17703,3883,44884,44873,28530,3,45286,24412,17351,44865,24438,44775,44671,17009,30986,17756,17527,6875,17278,44858,44674,9341,17839,45177,17556,44835,44531,45262,44640,44853,44745,44863,44851,37057,44739,44767,18894,17601,18650,44855,10402,5388,22509,45042,45517,18237,32454,44861,17237,45515,43800,18652,44854,13988,17771,34194,45421,16935,6609,45277,16885,45346,19057,13922,45516,44836,18430)
Unknown column 'np.person' in 'where clause'