Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter SheriW7

    (@sheriw7)

    I did get another error which is below. What is your email for me to send the screenshot data to?

    Thanks, Sheri

    ERROR: Unknown column ‘wp_wp_pro_statistic_ref.statistic_ref_id’ in ‘on clause’ SQL:SELECT COUNT(wp_wp_pro_quiz_statistic.correct_count) AS Score, wp_wp_pro_quiz_master.name FROM (wp_wp_pro_quiz_statistic_ref INNER JOIN wp_wp_pro_quiz_master ON wp_wp_pro_quiz_statistic_ref.statistic_ref_id = wp_wp_pro_quiz_master.id) LEFT JOIN wp_wp_pro_quiz_statistic ON wp_wp_pro_statistic_ref.statistic_ref_id = wp_wp_pro_quiz_statistic.statistic_ref_id WHERE wp_wp_pro_quiz_master.name LIKE ‘%Science 7%’ AND wp_wp_pro_quiz_statistic.correct_count = ‘1’ AND wp_wp_pro_quiz_statistic_ref.user_id = ‘1’ GROUP BY wp_wp_pro_quiz_master.name;

    Thread Starter SheriW7

    (@sheriw7)

    I tried the query and got this error first under Unsaved Report:

    Unknown column ‘wp_wp_pro_quiz_statistic.user_id’ in ‘where clause’

    and this error was in pink above the query:

    ERROR: Unknown column ‘wp_wp_pro_quiz_statistic.user_id’ in ‘where clause’ SQL:SELECT COUNT(wp_wp_pro_quiz_statistic.correct_count) AS Score, wp_wp_pro_quiz_master.name FROM (wp_wp_pro_quiz_statistic_ref INNER JOIN wp_wp_pro_quiz_master ON wp_wp_pro_quiz_statistic_ref.statistic_ref_id = wp_wp_pro_quiz_master.id) LEFT JOIN wp_wp_pro_quiz_statistic ON wp_wp_pro_statistic_ref_id.statistic_ref_id = wp_wp_pro_quiz_statistic.statistic_ref_id WHERE wp_wp_pro_quiz_master.name LIKE ‘%Science 7%’ AND wp_wp_pro_quiz_statistic.correct_count = ‘1’ AND wp_wp_pro_quiz_statistic.user_id = ‘1’ GROUP BY wp_wp_pro_quiz_master.name;

    So, I changed the table name to wp_wp_pro_quiz_static_ref.user_id and that removed the errors above, but then I received these errors:

    This error came under the Unsaved Report:

    Unknown column ‘wp_wp_pro_statistic_ref_id.statistic_ref_id’ in ‘on clause’

    and this error was in pink:

    ERROR: Unknown column ‘wp_wp_pro_statistic_ref_id.statistic_ref_id’ in ‘on clause’ SQL:SELECT COUNT(wp_wp_pro_quiz_statistic.correct_count) AS Score, wp_wp_pro_quiz_master.name FROM (wp_wp_pro_quiz_statistic_ref INNER JOIN wp_wp_pro_quiz_master ON wp_wp_pro_quiz_statistic_ref.statistic_ref_id = wp_wp_pro_quiz_master.id) LEFT JOIN wp_wp_pro_quiz_statistic ON wp_wp_pro_statistic_ref_id.statistic_ref_id = wp_wp_pro_quiz_statistic.statistic_ref_id WHERE wp_wp_pro_quiz_master.name LIKE ‘%Science 7%’ AND wp_wp_pro_quiz_statistic.correct_count = ‘1’ AND wp_wp_pro_quiz_statistic_ref.user_id = ‘1’ GROUP BY wp_wp_pro_quiz_master.name;

    On your ???, this is what I’m seeing in phpMyAdmin:

    Table: wp_wp_pro_quiz_statistic_ref – there’s an area under “indexes” that says: PRIMARY with a field: statistic_ref_id

    Table: wp_wp_pro_quiz_master – it says PRIMARY with field: id

    Table: wp_wp_pro_quiz_statistic – it says PRIMARY with field: statistic_ref_id and question_id

    I can send you screenshots of what I’m looking at via email if needed.

    Thanks, Sheri

    Thread Starter SheriW7

    (@sheriw7)

    Thank you!

    Thread Starter SheriW7

    (@sheriw7)

    I got this below to work. Thanks for your guidance. Your plugin is going to help me a great deal to display reports for each user – awesome!

    SELECT answered, correct, quiz, date_stamp FROM ssquiz_users WHERE user_email = ‘<?php $current_user->user_email ?>’

    Thread Starter SheriW7

    (@sheriw7)

    I tried that and received this error message: ERROR: Unknown column ‘user_id’ in ‘where clause’ SQL:SELECT answered, correct, quiz FROM ssquiz_users WHERE user_id = 1

    Any other thoughts on how to pull this report? Thanks Eli, Sheri

Viewing 5 replies - 1 through 5 (of 5 total)