string(265) "
SELECT `cover`, i.`id_image`, il.`legend`, i.`position`
FROM `pr_image` i
LEFT JOIN `pr_image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = 2)
WHERE i.`id_product` = 123
ORDER BY `position`"
array(4) {
["cover"]=>
string(1) "1"
["id_image"]=>
string(4) "2255"
["legend"]=>
string(0) ""
["position"]=>
string(1) "1"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2256"
["legend"]=>
string(0) ""
["position"]=>
string(1) "2"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2257"
["legend"]=>
string(0) ""
["position"]=>
string(1) "3"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2258"
["legend"]=>
string(0) ""
["position"]=>
string(1) "4"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2259"
["legend"]=>
string(0) ""
["position"]=>
string(1) "5"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2260"
["legend"]=>
string(0) ""
["position"]=>
string(1) "6"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2261"
["legend"]=>
string(0) ""
["position"]=>
string(1) "7"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2262"
["legend"]=>
string(0) ""
["position"]=>
string(1) "8"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2263"
["legend"]=>
string(0) ""
["position"]=>
string(1) "9"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2264"
["legend"]=>
string(0) ""
["position"]=>
string(2) "10"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2265"
["legend"]=>
string(0) ""
["position"]=>
string(2) "11"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2266"
["legend"]=>
string(0) ""
["position"]=>
string(2) "12"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2267"
["legend"]=>
string(0) ""
["position"]=>
string(2) "13"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2268"
["legend"]=>
string(0) ""
["position"]=>
string(2) "14"
}
array(4) {
["cover"]=>
NULL
["id_image"]=>
string(4) "2269"
["legend"]=>
string(0) ""
["position"]=>
string(2) "15"
}














