Warning: [mysql error 1052] Column 'id' in where clause is ambiguous

SELECT UT.id, UT.username, COUNT(DISTINCT(IT.id)) AS PBU
 FROM bim_users as UT
 INNER JOIN bim_images AS IT ON IT.added_by = UT.id
 INNER JOIN bim_image_category AS ic ON IT.id = ic.image_id
  WHERE (category_id NOT IN (1,2,3,4,6,9,8,10,11,12) AND category_id IN (-1) AND id IN (-1))
 GROUP BY IT.added_by
 HAVING PBU >0
 ORDER BY PBU ASC
 LIMIT 1000; in /var/www/html/bancodeimagenes/include/dblayer/functions_mysqli.inc.php on line 830
Notice: Trying to get property of non-object in /var/www/html/bancodeimagenes/include/dblayer/functions_mysqli.inc.php on line 201 Banco de Imágenes Ingeni@

Photos posted within the last 1 day only.

Home