I need to know how to query data from serialized column:
Code: |
a:1:{i:0;a:11:{s:10:"tipster_id";s:1:"1";s:6:"league";s:9:"England F";s:9:"opap_code";s:3:"HAB";s:7:"kickoff";s:8:"12-12-11";s:8:"hometeam";s:10:"Manchester";s:9:"rivalteam";s:10:"Birmingham";s:8:"prognosi";s:2:"12";s:7:"apodosi";s:2:"12";s:6:"booker";s:1:"1";s:11:"final_score";s:2:"12";s:7:"outcome";s:1:"1";}}
|
This is my query
Code: |
SELECT `serialized_data` FROM jos_tipster_deltio WHERE `id`='' AND `tipster_id`='' AND `league`='' AND `opap_code `='' AND `kickoff `='' AND `hometeam `='' AND `rivalteam `='' AND `prognosi `='' AND `apodosi `='' AND `booker `='' AND `final_score `='' AND `outcome `=''
|
The idea is to show "England",HAB etc, but Im only geting error:
Code: |
JDatabaseMySQL::query: 1054 - Unknown column 'league' in 'where clause' SQL=SELECT `serialized_data` FROM jos_tipster_deltio WHERE `id`='' AND `tipster_id`='' AND `league`='' AND `opap_code `='' AND `kickoff `='' AND `hometeam `='' AND `rivalteam `='' AND `prognosi `='' AND `apodosi `='' AND `booker `='' AND `final_score `='' AND `outcome `=''
|
Cheers-Tato