ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Never compare integer to strings in MySQL. If id is int, remove the quotes.
ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Never compare integer to strings in MySQL. If id is int, remove the quotes.